public class RewindableInputStream extends InputStream
| 构造器和说明 |
|---|
RewindableInputStream(InputStream input)
Constructor.
|
RewindableInputStream(InputStream input,
int maxBytesToRemember)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
InputStream |
rewind() |
available, mark, markSupported, read, reset, skippublic RewindableInputStream(InputStream input)
input - public RewindableInputStream(InputStream input, int maxBytesToRemember)
public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic InputStream rewind() throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation