public interface IPacketReferenceInputStream extends IPacketInputStream, IRecorderPacketReferenceSource
Modifier and Type | Method and Description |
---|---|
IRecorderPacketReference |
readPacketReference()
Returns a reference to the next packet in the stream.
|
void |
seek(IRecorderPacketReference ref)
Sets the current position in the input stream just before the specified packet
reference.
|
close, getPartialPacketAttachment, readPacket
fromHandle, toHandle
IRecorderPacketReference readPacketReference() 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).void seek(IRecorderPacketReference ref) throws IOException
IPacketInputStream.readPacket()
or IPacketReferenceInputStream.readPacketReference()
will return the packet referred to by ref
.ref
- A recorder packet reference previously returned by this stream.IOException
- Any exception thrown by the underlying I/O layer.© Copyright IBM Corp. 2013. All rights reserved.