com.ibm.rational.test.lt.recorder.core.io
Interface IPacketReferenceInputStream
- All Superinterfaces:
- IPacketInputStream, IRecorderPacketReferenceSource
public interface IPacketReferenceInputStream
- extends IPacketInputStream, IRecorderPacketReferenceSource
readPacketReference
IRecorderPacketReference readPacketReference()
throws IOException,
ClassNotFoundException
- Returns a reference to the next packet in the stream.
- Returns:
- A reference to the next packet in the stream, or
null
if the
end of stream has been reached.
- Throws:
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).
seek
void seek(IRecorderPacketReference ref)
throws IOException
- Sets the current position in the input stream just before the specified packet
reference. The next call to
IPacketInputStream.readPacket()
or IPacketReferenceInputStream.readPacketReference()
will return the packet referred to by ref
.
- Parameters:
ref
- A recorder packet reference previously returned by this stream.
- Throws:
IOException
- Any exception thrown by the underlying I/O layer.
© Copyright IBM Corp. 2012. All rights reserved.