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