ResettableInputStream and this class will be removed
in future releases.
A repeatable input stream for files. This input stream can be repeated an unlimited number of times, without any limitation on when a repeat can occur.
@Deprecated public class RepeatableFileInputStream extends SdkInputStream
| Constructor and Description |
|---|
RepeatableFileInputStream(File file)
Deprecated.
Creates a repeatable input stream based on a file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Deprecated.
|
void |
close()
Deprecated.
|
File |
getFile()
Deprecated.
Returns the File this stream is reading data from.
|
InputStream |
getWrappedInputStream()
Deprecated.
Returns the underlying input stream, if any, from the subclass; or null
if there is no underlying input stream.
|
void |
mark(int readlimit)
Deprecated.
|
boolean |
markSupported()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] arg0,
int arg1,
int arg2)
Deprecated.
|
void |
reset()
Deprecated.
Resets the input stream to the last mark point, or the beginning of the
stream if there is no mark point, by creating a new FileInputStream based
on the underlying file.
|
long |
skip(long n)
Deprecated.
|
isMetricActivated, releasereadpublic RepeatableFileInputStream(File file) throws FileNotFoundException
file - The file from which this input stream reads data.FileNotFoundException - If the specified file doesn't exist, or can't be opened.public File getFile()
public void reset()
throws IOException
reset in class InputStreamIOException - when the FileInputStream cannot be re-created.public boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int read(byte[] arg0,
int arg1,
int arg2)
throws IOException
read in class InputStreamIOExceptionpublic InputStream getWrappedInputStream()
SdkInputStream