Package com.aoindustries.aoserv.client
Class NestedInputStream
java.lang.Object
java.io.InputStream
com.aoindustries.aoserv.client.NestedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
NestedInputStream
reads data from
within a StreamableInput
as if it were
a separate stream. The underlying StreamableInput
is never closed, allowing it to be used for multiple
nested streams.- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
Constructor Details
-
NestedInputStream
-
-
Method Details
-
available
public int available()- Overrides:
available
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-