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
Constructors -
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:
availablein classInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
