public class TemporaryInputStream extends FilterInputStream
in| Constructor and Description |
|---|
TemporaryInputStream(InputStream sourceInputStream)
Creates a new temporary input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
reopen()
Creates a new input stream from the temporary file that is backing this
input stream.
|
available, mark, markSupported, read, read, read, reset, skippublic TemporaryInputStream(InputStream sourceInputStream) throws IOException
sourceInputStream - The input stream to copy to a temporary fileIOException - if an I/O error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic InputStream reopen() throws IOException
IOException - if an I/O error occursCopyright © 2026. All rights reserved.