com.bea.b2b.protocol.messaging
Class Attachment

java.lang.Object
  |
  +--com.bea.b2b.protocol.messaging.Attachment

public class Attachment
extends java.lang.Object
implements com.bea.b2b.protocol.messaging.MessagePart, PayloadPart

The Attachment class represents an attachment, which consists of binary content. An Attachment is a payload part of a business message and is used to exchange binary content between trading partners.

Author:
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
Attachment()
          Constructs an Attachment.
Attachment(java.io.InputStream is)
          Constructs an Attachment using the specified input stream.
 
Method Summary
 java.io.InputStream getInputStream()
          Gets the input stream for this message part.
 void setInputStream(java.io.InputStream is)
          Sets the input stream for this message part.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment()
Constructs an Attachment.

Attachment

public Attachment(java.io.InputStream is)
Constructs an Attachment using the specified input stream.

Parameters:
is - InputStream of the part.
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Gets the input stream for this message part.

Returns:
InputStream - Input stream.

setInputStream

public void setInputStream(java.io.InputStream is)
Sets the input stream for this message part.

Parameters:
is - Input stream to specify.