Package org.h2.store
Class CountingReaderInputStream
java.lang.Object
java.io.InputStream
org.h2.store.CountingReaderInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An input stream that reads the data from a reader and limits the number of
bytes that can be read.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
CountingReaderInputStream
-
-
Method Details
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
getLength
public long getLength()The number of characters read so far (but there might still be some bytes in the buffer).- Returns:
- the number of characters
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-