public class RepeatableFileInputStream
extends java.io.InputStream
| コンストラクタと説明 |
|---|
RepeatableFileInputStream(java.io.File file)
Creates a repeatable input stream based on a file.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
available() |
void |
close() |
java.io.File |
getFile()
Returns the File this stream is reading data from.
|
java.io.InputStream |
getWrappedInputStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] arg0,
int arg1,
int arg2) |
void |
reset()
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) |
public RepeatableFileInputStream(java.io.File file)
throws java.io.FileNotFoundException
file - The file from which this input stream reads data.java.io.FileNotFoundException - If the specified file doesn't exist, or can't be opened.public java.io.File getFile()
public void reset()
throws java.io.IOException
reset クラス内 java.io.InputStreamjava.io.IOException - when the FileInputStream cannot be re-created.public boolean markSupported()
markSupported クラス内 java.io.InputStreamInputStream.markSupported()public void mark(int readlimit)
mark クラス内 java.io.InputStreamInputStream.mark(int)public int available()
throws java.io.IOException
available クラス内 java.io.InputStreamjava.io.IOExceptionInputStream.available()public void close()
throws java.io.IOException
close インタフェース内 java.io.Closeableclose インタフェース内 java.lang.AutoCloseableclose クラス内 java.io.InputStreamjava.io.IOExceptionInputStream.close()public int read()
throws java.io.IOException
read クラス内 java.io.InputStreamjava.io.IOExceptionInputStream.read()public long skip(long n)
throws java.io.IOException
skip クラス内 java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] arg0,
int arg1,
int arg2)
throws java.io.IOException
read クラス内 java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)public java.io.InputStream getWrappedInputStream()