Package de.xima.fc.common.io
Class MarkableRandomAccessFileInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- java.io.FilterInputStream
- 
- de.xima.fc.common.io.MarkableRandomAccessFileInputStream
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public final class MarkableRandomAccessFileInputStream extends FilterInputStream - Since:
- 8.3.0
- Author:
- XIMA Media GmbH
 
- 
- 
Field Summary- 
Fields inherited from class java.io.FilterInputStreamin
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int readLimit)booleanmarkSupported()static InputStreamnewMarkableInputStream(File file)Creates a new markable input stream from the givenFile.static InputStreamnewMarkableInputStream(RandomAccessFile file)Creates 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 java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
 
- 
 
- 
- 
- 
Method Detail- 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterInputStream
- Throws:
- IOException
 
 - 
markpublic void mark(int readLimit) - Overrides:
- markin class- FilterInputStream
 
 - 
markSupportedpublic boolean markSupported() - Overrides:
- markSupportedin class- FilterInputStream
 
 - 
resetpublic void reset() throws IOException- Overrides:
- resetin class- FilterInputStream
- Throws:
- IOException
 
 - 
newMarkableInputStreampublic static InputStream newMarkableInputStream(RandomAccessFile file) throws IOException Creates a new markable input stream from the givenRandomAccessFile.- Parameters:
- file- The- RandomAccessFileto read from.
- Returns:
- A new InputStreaminstance that is markable and seekable.
- Throws:
- IOException- If an I/O error occurs.
 
 - 
newMarkableInputStreampublic static InputStream newMarkableInputStream(File file) throws IOException Creates a new markable input stream from the givenFile.- Parameters:
- file- The- Fileto read from.
- Returns:
- A new InputStreaminstance that is markable and seekable.
- Throws:
- IOException- If an I/O error occurs.
 
 - 
newMarkableInputStreampublic static InputStream newMarkableInputStream(Path file) throws IOException Creates a new markable input stream from the givenPath.- Parameters:
- file- The- Pathto read from.
- Returns:
- A new InputStreaminstance that is markable and seekable.
- Throws:
- IOException- If an I/O error occurs.
 
 
- 
 
-