IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.core.packet
Interface IPacketAttachment

All Known Subinterfaces:
IConvertedPacketAttachment

public interface IPacketAttachment

A packet attachment allows recorders to store large data in a scalable way. A packet attachment may work in read-only or write-only mode, depending on the context. Packet attachments are designed to work with IRecorderPackets. They must be referenced, either directly or indirectly by a packet in order to be accessible later.

See Also:
IPacketAttachmentFactory.createPacketAttachment()

Method Summary
 InputStream createInputStream()
          Creates an input stream used to retrieve an arbitrarily large amount of data.
 OutputStream getOutputStream()
          Returns the output stream used to store an arbitrarily large amount of data.
 

Method Detail

getOutputStream

OutputStream getOutputStream()
Returns the output stream used to store an arbitrarily large amount of data. The returned output stream must be closed by the caller.

Returns:
An output stream.
Throws:
IllegalStateException - if the packet attachment is in read-only mode.

createInputStream

InputStream createInputStream()
Creates an input stream used to retrieve an arbitrarily large amount of data. The returned input stream must be closed by the caller.

Returns:
An input stream.
Throws:
IllegalStateException - if the packet attachment is in write-only mode.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.