List of usage examples for java.nio DoubleBuffer asReadOnlyBuffer
public abstract DoubleBuffer asReadOnlyBuffer();
From source file:Main.java
public static void main(String[] args) { DoubleBuffer bb = DoubleBuffer.allocate(BSIZE); bb.put(98765);// w w w. ja va2 s . c o m DoubleBuffer bb1 = bb.asReadOnlyBuffer(); System.out.println(bb1.toString()); }