public interface CommandReader
Modifier and Type | Method and Description |
---|---|
boolean |
readBoolean()
Reads a boolean parameter.
|
byte[] |
readByteArray()
Reads a byte array parameter.
|
String |
readCommand()
Reads a command.
|
double |
readDouble()
Reads a double parameter.
|
float |
readFloat()
Reads a float parameter.
|
InputStream |
readInputStream()
Reads an input stream.
|
int |
readInt()
Reads an integer parameter.
|
long |
readLong()
Reads a long parameter.
|
String |
readString()
Reads a string parameter.
|
void |
skipParameters()
Skips the parameters of a command and get ready to read the following command.
|
boolean readBoolean() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.byte[] readByteArray() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.String readCommand() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.double readDouble() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.float readFloat() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.InputStream readInputStream() throws IOException
The returned input stream must be fully read before returning the method.
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.int readInt() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.long readLong() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.String readString() throws IOException
IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.void skipParameters() throws IOException
IOException