public class RepeatableFileInputStream extends InputStream
Constructor and Description |
---|
RepeatableFileInputStream(File file)
ファイルに対して、繰り返しの読み込みを提供するInputStreamを構築します、。
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
InputStream |
getWrappedInputStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] arg0,
int arg1,
int arg2) |
void |
reset()
InputStreamを、mark pointまたは、mark poingがない場合はストリームの
先頭までリセットします。
|
read, skip
public RepeatableFileInputStream(File file) throws FileNotFoundException
file
- このInputStreamで読み込むファイルFileNotFoundException
- ファイルが存在しない、もしくは、開けない場合public void reset() throws IOException
reset
in class InputStream
IOException
- FileInputStream の再構築ができなかった場合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 int read(byte[] arg0, int arg1, int arg2) throws IOException
read
in class InputStream
IOException
public InputStream getWrappedInputStream()
Copyright © 2018. All rights reserved.