DoubleBuffer.order() has the following syntax.
public abstract ByteOrder order()
In the following code shows how to use DoubleBuffer.order() method.
//from w w w .ja v a 2s. c o m import java.nio.DoubleBuffer; public class Main { private static final int BSIZE = 1024; public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.allocate(BSIZE); bb.put(98765); System.out.println(bb.order()); } }
The code above generates the following result.