Example usage for java.io FilterInputStream markSupported

List of usage examples for java.io FilterInputStream markSupported

Introduction

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

Prototype

public boolean markSupported() 

Source Link

Document

Tests if this input stream supports the mark and reset methods.

Usage

From source file:Main.java

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

    boolean bool = false;

    // create input streams
    InputStream is = new FileInputStream("C://test.txt");
    FilterInputStream fis = new BufferedInputStream(is);

    // tests if the input stream supports mark() and reset()
    bool = fis.markSupported();

    // prints//from  w ww .ja va2  s .c om
    System.out.print("Supports mark and reset methods: " + bool);

}