fr.dyade.aaa.agent
Class SimpleNetwork.NetworkInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by fr.dyade.aaa.agent.MessageInputStream
          extended by fr.dyade.aaa.agent.BufferedMessageInputStream
              extended by fr.dyade.aaa.agent.SimpleNetwork.NetworkInputStream
All Implemented Interfaces:
java.io.Closeable
Enclosing class:
SimpleNetwork

final class SimpleNetwork.NetworkInputStream
extends BufferedMessageInputStream


Field Summary
(package private)  int boot
           
 
Fields inherited from class fr.dyade.aaa.agent.BufferedMessageInputStream
in
 
Fields inherited from class fr.dyade.aaa.agent.MessageInputStream
buf, compressedFlows, count, logmon, pos
 
Constructor Summary
SimpleNetwork.NetworkInputStream()
           
 
Method Summary
protected  void readHeader()
          Reads the protocol header from this output stream.
(package private)  Message readMessage(java.io.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
getLogger, read, readInt, readMessage, readMessageHeader, readShort
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boot

int boot
Constructor Detail

SimpleNetwork.NetworkInputStream

SimpleNetwork.NetworkInputStream()
Method Detail

readHeader

protected void readHeader()
                   throws java.io.IOException
Reads the protocol header from this output stream.

Specified by:
readHeader in class MessageInputStream
Throws:
java.io.IOException

readMessage

Message readMessage(java.io.InputStream is)
              throws java.lang.Exception
Reads the message from the input stream.

Parameters:
is - the input stream.
Returns:
the incoming message.
Throws:
java.lang.Exception


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.