java.io.Closeable, java.lang.AutoCloseablepublic class RewindableInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
RewindableInputStream(java.io.InputStream input) |
Constructor.
|
RewindableInputStream(java.io.InputStream input,
int maxBytesToRemember) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
read() |
|
int |
read(byte[] buffer,
int offset,
int length) |
|
java.io.InputStream |
rewind() |
public RewindableInputStream(java.io.InputStream input)
input - public RewindableInputStream(java.io.InputStream input,
int maxBytesToRemember)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic java.io.InputStream rewind()
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.