List of usage examples for java.nio CharBuffer isDirect
public abstract boolean isDirect();
From source file:Main.java
public static void main(String[] args) { CharBuffer cb1 = CharBuffer.allocate(50); cb1.append("java2s.com"); cb1.rewind();/*from w ww . j a v a 2s . c o m*/ System.out.println(cb1.isDirect()); }