Example usage for java.io PushbackInputStream markSupported

List of usage examples for java.io PushbackInputStream markSupported

Introduction

In this page you can find the example usage for java.io PushbackInputStream markSupported.

Prototype

public boolean markSupported() 

Source Link

Document

Tests if this input stream supports the mark and reset methods, which it does not.

Usage

From source file:Main.java

public static void main(String[] args) {
    byte[] arrByte = new byte[1024];
    byte[] byteArray = new byte[] { 'j', 'a', 'v', 'a', '2', 's', '.', 'c', 'o', 'm' };

    InputStream is = new ByteArrayInputStream(byteArray);
    PushbackInputStream pis = new PushbackInputStream(is);

    System.out.println(pis.markSupported());

}