public class ServerInputStreamImpl extends ServerInputStream
ServerInputStream
implementation.Constructor and Description |
---|
ServerInputStreamImpl(Object lock)
Initiate.
|
ServerInputStreamImpl(Object lock,
Serializable stateMomento)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
BrowseInputStream |
createBrowseInputStream()
Obtains a new
BrowseInputStream that starts browsing the input
content from the current position of the ServerInputStream within
the input stream of data. |
Serializable |
exportState()
Exports the momento containing the current state of the
ServerInputStream . |
void |
inputData(byte[] data,
int startIndex,
int endIndex,
boolean isFurtherData)
Inputs data for reading.
|
int |
read() |
close, mark, markSupported, read, read, reset, skip
public ServerInputStreamImpl(Object lock)
lock
- Object to synchronize
on for operations.public ServerInputStreamImpl(Object lock, Serializable stateMomento) throws IllegalArgumentException
lock
- Object to synchronize
on for operations.stateMomento
- Momento containing the state for this
ServerInputStream
.IllegalArgumentException
- Should the momento be invalid.public void inputData(byte[] data, int startIndex, int endIndex, boolean isFurtherData)
data
- Data for reading.startIndex
- Start index within the data.endIndex
- End index within the data.isFurtherData
- Indicates if further data is going to be made available.public Serializable exportState() throws NotAllDataAvailableException
ServerInputStream
.ServerInputStream
.NotAllDataAvailableException
- Should all input data not be available.public BrowseInputStream createBrowseInputStream()
ServerInputStream
BrowseInputStream
that starts browsing the input
content from the current position of the ServerInputStream
within
the input stream of data.createBrowseInputStream
in class ServerInputStream
BrowseInputStream
.public int read() throws IOException, NoAvailableInputException
read
in class ServerInputStream
IOException
NoAvailableInputException
public int available() throws IOException
available
in class ServerInputStream
IOException
Copyright © 2005–2016. All rights reserved.