Example usage for java.io FilterReader markSupported

List of usage examples for java.io FilterReader markSupported

Introduction

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

Prototype

public boolean markSupported() 

Source Link

Document

Tells whether this stream supports the mark() operation.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {

    // create new reader
    Reader r = new StringReader("ABCDEF");

    // create new filter reader
    FilterReader fr = new FilterReader(r) {
    };/* w ww  .  j a  va2  s.  com*/

    // tests if the filter reader supports mark()
    boolean bool = fr.markSupported();

    // prints
    System.out.print("If mark() supported? " + bool);

}