List of usage examples for java.io FilterInputStream markSupported
public boolean markSupported()
mark
and reset
methods. 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); }