Class MarkableRandomAccessFileInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.xima.fc.common.io.MarkableRandomAccessFileInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Since:
- 8.3.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class FilterInputStream
in -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidmark(int readLimit) booleanstatic InputStreamnewMarkableInputStream(File file) Creates a new markable input stream from the givenFile.static InputStreamCreates a new markable input stream from the givenRandomAccessFile.static InputStreamnewMarkableInputStream(Path file) Creates a new markable input stream from the givenPath.voidreset()Methods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classFilterInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
newMarkableInputStream
Creates a new markable input stream from the givenRandomAccessFile.- Parameters:
file- TheRandomAccessFileto read from.- Returns:
- A new
InputStreaminstance that is markable and seekable. - Throws:
IOException- If an I/O error occurs.
-
newMarkableInputStream
Creates a new markable input stream from the givenFile.- Parameters:
file- TheFileto read from.- Returns:
- A new
InputStreaminstance that is markable and seekable. - Throws:
IOException- If an I/O error occurs.
-
newMarkableInputStream
Creates a new markable input stream from the givenPath.- Parameters:
file- ThePathto read from.- Returns:
- A new
InputStreaminstance that is markable and seekable. - Throws:
IOException- If an I/O error occurs.
-