public interface CommandReader
Modifier and Type | Method and Description |
---|---|
boolean |
readBoolean()
Reads a boolean parameter.
|
byte[] |
readByteArray()
Reads a byte array parameter.
|
java.io.InputStream |
readByteArrayAsInputStream()
Deprecated.
Use readByteArray or readInputStream instead.
|
java.lang.String |
readCommand()
Reads a command.
|
double |
readDouble()
Reads a double parameter.
|
float |
readFloat()
Reads a float parameter.
|
java.io.InputStream |
readInputStream()
Reads an input stream.
|
int |
readInt()
Reads an integer parameter.
|
long |
readLong()
Reads a long parameter.
|
java.lang.Object |
readObject()
Reads a parameter, whatever it's type.
|
java.lang.String |
readString()
Reads a string parameter.
|
void |
skipParameters()
Skips the parameters of a command and get ready to read the following
command.
|
java.lang.String readCommand() throws java.io.IOException
java.io.IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.java.lang.String readString() throws java.io.IOException
java.io.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 java.io.IOException
java.io.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 java.io.IOException
java.io.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 java.io.IOException
java.io.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 java.io.IOException
java.io.IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.boolean readBoolean() throws java.io.IOException
java.io.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 java.io.IOException
java.io.IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.@Deprecated java.io.InputStream readByteArrayAsInputStream() throws java.io.IOException
The returned input stream must be fully read before returning the method.
java.io.IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.java.io.InputStream readInputStream() throws java.io.IOException
The returned input stream must be fully read before returning the method.
java.io.IOException
- the stream has been closed and the contained input stream does not support reading after close, or
another I/O error occurs.java.lang.Object readObject() throws java.io.IOException
java.io.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 java.io.IOException
java.io.IOException