Class ByteSequenceServerInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.officefloor.server.stream.ServerInputStream
-
- net.officefloor.server.stream.impl.ByteSequenceServerInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ByteSequenceServerInputStream extends ServerInputStream
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ByteSequenceServerInputStream(ByteSequence byteSequence, int position)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
java.io.InputStream
createBrowseInputStream()
Obtains a newInputStream
that starts browsing the input content from the current position of theServerInputStream
within the input stream of data.int
read()
-
-
-
Constructor Detail
-
ByteSequenceServerInputStream
public ByteSequenceServerInputStream(ByteSequence byteSequence, int position)
Instantiate.- Parameters:
byteSequence
-ByteSequence
.position
- Starting position within theByteSequence
.
-
-
Method Detail
-
createBrowseInputStream
public java.io.InputStream createBrowseInputStream()
Description copied from class:ServerInputStream
Obtains a newInputStream
that starts browsing the input content from the current position of theServerInputStream
within the input stream of data.- Specified by:
createBrowseInputStream
in classServerInputStream
- Returns:
InputStream
.
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-