Example usage for java.nio ShortBuffer hasArray

List of usage examples for java.nio ShortBuffer hasArray

Introduction

In this page you can find the example usage for java.nio ShortBuffer hasArray.

Prototype

public final boolean hasArray() 

Source Link

Document

Indicates whether this buffer is based on a short array and is read/write.

Usage

From source file:Main.java

public static void main(String[] args) {
    ShortBuffer bb = ShortBuffer.allocate(10);
    bb.put((short) 100);
    System.out.println(bb.hasArray());

}