Example usage for java.nio Buffer toString

List of usage examples for java.nio Buffer toString

Introduction

In this page you can find the example usage for java.nio Buffer toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:Main.java

private static void println(Buffer buffer) {
    System.out.println("pos=" + buffer.position() + ", limit=" + buffer.limit() + ", capacity="
            + buffer.capacity() + ": '" + buffer.toString() + "'");
}