public interface PacketHandlerInterface
Implemented by classes that read/write request packets to a network connection.
| Modifier and Type | Method and Description |
|---|---|
int |
availableBytes()
Return the number of bytes available for reading without blocking
|
void |
closePacketHandler()
Close the packet handler
|
java.lang.String |
getProtocolName()
Return the protocol name
|
int |
readPacket(byte[] pkt,
int offset,
int maxLen)
Read a packet of data
|
void |
writePacket(byte[] pkt,
int offset,
int len)
Write a packet of data
|
java.lang.String getProtocolName()
int availableBytes()
throws java.io.IOException
java.io.IOExceptionint readPacket(byte[] pkt,
int offset,
int maxLen)
throws java.io.IOException
pkt - byte[]offset - intmaxLen - intjava.io.IOExceptionvoid writePacket(byte[] pkt,
int offset,
int len)
throws java.io.IOException
pkt - byte[]offset - intlen - intjava.io.IOExceptionvoid closePacketHandler()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.