Class ProbeReader

java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.sis.storage.ProbeReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

final class ProbeReader extends FilterReader
A temporary character reader used for probing purposes. This reader does not allow mark/reset operations because the mark is reserved for this class. The close() method closes this reader but not the wrapped reader, which is only reset.

Note: this wrapper is not used if the reader is an instance of RewindableLineReader.

Since:
1.2
Version:
1.2
See Also:
  • Field Summary

    Fields inherited from class java.io.FilterReader

    in

    Fields inherited from class java.io.Reader

    lock
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new reader which delegates everything to the given reader except the mark/reset operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this reader and resets the wrapped reader to its original position.
    void
    mark(int readlimit)
    Throws an exception since marks are not supported on this reader.
    boolean
    Notifies the caller that marks are not supported on this reader.
    void
    Throws an exception since marks are not supported on this reader.

    Methods inherited from class java.io.FilterReader

    read, read, ready, skip

    Methods inherited from class java.io.Reader

    read, read

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait