IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.core.io
Interface IPacketReferenceInputStream

All Superinterfaces:
IPacketInputStream, IRecorderPacketReferenceSource

public interface IPacketReferenceInputStream
extends IPacketInputStream, IRecorderPacketReferenceSource


Method Summary
 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.
 
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.io.IPacketInputStream
close, getPartialPacketAttachment, readPacket
 
Methods inherited from interface com.ibm.rational.test.lt.recorder.core.io.IRecorderPacketReferenceSource
fromHandle, toHandle
 

Method Detail

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.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.