public interface IPacketInputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream.
|
IPacketAttachment |
getPartialPacketAttachment(IPacketAttachment attachment,
InputStream packetAttachmentInputStream)
Returns a packet attachment whose content is the not-consumed part of another
attachment input stream obtained through this packet input stream.
|
IRecorderPacket |
readPacket()
Returns the next packet in the stream.
|
IRecorderPacket readPacket() throws IOException, ClassNotFoundException
null if the end of stream has been
reached.IOException - Any exception thrown by the underlying I/O layer.ClassNotFoundException - If a packet could not be read because of an
unresolved packet type (usually because the plugin declaring the packet type
is missing).IPacketAttachment getPartialPacketAttachment(IPacketAttachment attachment, InputStream packetAttachmentInputStream)
attachment - An attachment obtained through this packet input stream.packetAttachmentInputStream - An input stream obtained from the attachment.void close()
throws IOException
IOException - Any exception thrown by the underlying I/O layer.© Copyright IBM Corp. 2013. All rights reserved.