Example usage for java.nio CharBuffer order

List of usage examples for java.nio CharBuffer order

Introduction

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

Prototype

public abstract ByteOrder order();

Source Link

Document

Returns the byte order used by this buffer when converting chars from/to bytes.

Usage

From source file:Main.java

public static void main(String[] args) {
    CharBuffer cb1 = CharBuffer.allocate(5);
    cb1.put(2, 'j');
    cb1.rewind();// ww w .j a  v  a  2s. c  o m

    System.out.println(cb1.order());
}