com.ptc.windchill.counterpart
Class SerializedAttachment

java.lang.Object
  extended bycom.ptc.windchill.counterpart.SerializedAttachment
All Implemented Interfaces:
nitidus.sil.be.att.iAttachedContentIO, Serializable

public class SerializedAttachment
extends Object
implements nitidus.sil.be.att.iAttachedContentIO, Serializable

See Also:
Serialized Form

Field Summary
private  byte[] fBytes
           
private  String fKey
           
private  long fLastModified
           
private  long fVersion
           
 
Constructor Summary
SerializedAttachment(AttachmentLocator attachmentLocator)
           
SerializedAttachment(nitidus.sil.be.att.iAttachedContentIO attachment, long version)
           
SerializedAttachment(String attachmentToDelete, long version)
           
 
Method Summary
 InputStream getContentStream()
           
 String getKey()
           
 long getLastModified()
           
 long getLength()
           
 long getVersion()
           
private  void setBytes(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fKey

private String fKey

fLastModified

private long fLastModified

fBytes

private byte[] fBytes

fVersion

private long fVersion
Constructor Detail

SerializedAttachment

public SerializedAttachment(nitidus.sil.be.att.iAttachedContentIO attachment,
                            long version)
                     throws IOException

SerializedAttachment

public SerializedAttachment(String attachmentToDelete,
                            long version)
                     throws IOException

SerializedAttachment

public SerializedAttachment(AttachmentLocator attachmentLocator)
                     throws IOException
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface nitidus.sil.be.att.iAttachedContentIO
See Also:
iAttachedContentIO

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface nitidus.sil.be.att.iAttachedContentIO
See Also:
iAttachedContentIO

getContentStream

public InputStream getContentStream()
                             throws IOException
Specified by:
getContentStream in interface nitidus.sil.be.att.iAttachedContentIO
Throws:
IOException
See Also:
iAttachedContentIO

getVersion

public long getVersion()

getLength

public long getLength()

setBytes

private void setBytes(InputStream is)
               throws IOException
Throws:
IOException