Class ByteSequenceServerInputStream
java.lang.Object
java.io.InputStream
net.officefloor.server.stream.ServerInputStream
net.officefloor.server.stream.impl.ByteSequenceServerInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionByteSequenceServerInputStream(ByteSequence byteSequence, int position) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionintObtains a newInputStreamthat starts browsing the input content from the current position of theServerInputStreamwithin the input stream of data.intread()Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ByteSequenceServerInputStream
Instantiate.- Parameters:
byteSequence-ByteSequence.position- Starting position within theByteSequence.
-
-
Method Details
-
createBrowseInputStream
Description copied from class:ServerInputStreamObtains a newInputStreamthat starts browsing the input content from the current position of theServerInputStreamwithin the input stream of data.- Specified by:
createBrowseInputStreamin classServerInputStream- Returns:
InputStream.
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-