Package fr.dyade.aaa.agent
Class SimpleNetwork.NetworkInputStream
- java.lang.Object
-
- java.io.InputStream
-
- fr.dyade.aaa.agent.MessageInputStream
-
- fr.dyade.aaa.agent.BufferedMessageInputStream
-
- fr.dyade.aaa.agent.SimpleNetwork.NetworkInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- SimpleNetwork
final class SimpleNetwork.NetworkInputStream extends BufferedMessageInputStream
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intboot-
Fields inherited from class fr.dyade.aaa.agent.BufferedMessageInputStream
in
-
Fields inherited from class fr.dyade.aaa.agent.MessageInputStream
buf, compressedFlows, count, pos
-
-
Constructor Summary
Constructors Constructor Description NetworkInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreadHeader()Reads the protocol header from this output stream.(package private) MessagereadMessage(InputStream is)Reads the message from the input stream.-
Methods inherited from class fr.dyade.aaa.agent.BufferedMessageInputStream
clean, read, read, readFully
-
Methods inherited from class fr.dyade.aaa.agent.MessageInputStream
read, readInt, readMessage, readMessageHeader, readShort
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
readHeader
protected void readHeader() throws IOExceptionReads the protocol header from this output stream.- Specified by:
readHeaderin classMessageInputStream- Throws:
IOException- an error occurs.
-
readMessage
Message readMessage(InputStream is) throws Exception
Reads the message from the input stream.- Parameters:
is- the input stream.- Returns:
- the incoming message.
- Throws:
Exception- an error occurs.
-
-