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
|
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
|
String getProtocolName()
int availableBytes() throws IOException
IOException
int readPacket(byte[] pkt, int offset, int maxLen) throws IOException
pkt
- byte[]offset
- intmaxLen
- intIOException
void writePacket(byte[] pkt, int offset, int len) throws IOException
pkt
- byte[]offset
- intlen
- intIOException
void closePacketHandler()
Copyright © 2005–2017 Alfresco Software. All rights reserved.