Example usage for java.nio CharBuffer isDirect

List of usage examples for java.nio CharBuffer isDirect

Introduction

In this page you can find the example usage for java.nio CharBuffer isDirect.

Prototype

public abstract boolean isDirect();

Source Link

Document

Indicates whether this buffer is direct.

Usage

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());
}