|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.altlinux.jabbix.JabbixReader
public class JabbixReader
A stream reader implementing the base Jabbix protocol.
Constructor Summary | |
---|---|
JabbixReader(InputStream in)
Creates a reader for the given input stream. |
Method Summary | |
---|---|
String |
readAll()
Reads the whole available data to the end of the stream. |
String |
readMessage()
Reads a message from the input stream. |
String |
readMessage(boolean untilEOF)
Reads a message from the input stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JabbixReader(InputStream in)
in
- the stream to read fromMethod Detail |
---|
public String readMessage(boolean untilEOF) throws IOException, JabbixProtocolException
JabbixProtocol.isSeparator(char)
). If the untilEOF
flag
is passed, then the whole data to the end of the stream is read and
returned as one message.
untilEOF
- the flag telling to read to whole available data
IOException
- if an I/O exception occurred during the read operation
JabbixProtocolException
- if the protocol was violated (i.e. an unexpected value was
received)JabbixProtocol.HEADER
public String readMessage() throws IOException, JabbixProtocolException
JabbixProtocol.isSeparator(char)
).
IOException
- if an I/O exception occurred during the read operation
JabbixProtocolException
- if the protocol was violated (i.e. an unexpected value was
received)readMessage(boolean)
public String readAll() throws IOException, JabbixProtocolException
IOException
- if an I/O exception occurred during the read operation
JabbixProtocolException
- if the protocol was violated (i.e. an unexpected value was
received)readMessage(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |