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, release
read
public 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 InputStream
IOException
- when the FileInputStream cannot be re-created.public boolean markSupported()
markSupported
in class InputStream
public void mark(int readlimit)
mark
in class InputStream
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int read(byte[] arg0, int arg1, int arg2) throws IOException
read
in class InputStream
IOException
public InputStream getWrappedInputStream()
SdkInputStream
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.