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 intavailable()java.io.InputStreamcreateBrowseInputStream()Obtains a newInputStreamthat starts browsing the input content from the current position of theServerInputStreamwithin the input stream of data.intread()
-
-
-
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: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
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
-