org.mule.providers.tcp.protocols
Class EOFProtocol

java.lang.Object
  extended by org.mule.providers.tcp.protocols.ByteProtocol
      extended by org.mule.providers.tcp.protocols.DefaultProtocol
          extended by org.mule.providers.tcp.protocols.EOFProtocol
All Implemented Interfaces:
TcpProtocol
Direct Known Subclasses:
MuleMessageEOFProtocol

public class EOFProtocol
extends DefaultProtocol

The EOFProtocol class is an application level tcp protocol that does nothing. Reading is terminated by the stream being closed by the client.


Field Summary
 
Fields inherited from class org.mule.providers.tcp.protocols.ByteProtocol
EOF, NO_STREAM, STREAM_OK
 
Constructor Summary
EOFProtocol()
           
 
Method Summary
protected  boolean isRepeat(int len, int available)
          Repeat until end of file
 
Methods inherited from class org.mule.providers.tcp.protocols.DefaultProtocol
read, read
 
Methods inherited from class org.mule.providers.tcp.protocols.ByteProtocol
copy, copy, nullEmptyArray, safeRead, safeRead, write, writeByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOFProtocol

public EOFProtocol()
Method Detail

isRepeat

protected boolean isRepeat(int len,
                           int available)
Repeat until end of file

Overrides:
isRepeat in class DefaultProtocol
Parameters:
len - Amount transferred last call (-1 on EOF or socket error)
available - Amount available
Returns:
true if the transfer should continue


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.