com.hunnysoft.jmime
Class TnefAttachment

java.lang.Object
  extended by com.hunnysoft.jmime.TnefAttachment

public class TnefAttachment
extends java.lang.Object

Class that represents a TNEF file attachment.

TnefAttachment is a simple "struct" type class that contains the information about a file attachment extracted from a TNEF container. The information includes the file name, and the content of the attachment. The class provides "getter" functions to get the file attachment data.


Constructor Summary
TnefAttachment(java.lang.String fileName, ByteString content)
          Constructor that takes an initial value.
 
Method Summary
 ByteString content()
          Gets the content of the file attachment.
 java.lang.String fileName()
          Gets the attachment file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TnefAttachment

public TnefAttachment(java.lang.String fileName,
                      ByteString content)
Constructor that takes an initial value.

Parameters:
fileName - the attachment's file name
content - the attachment's content
Method Detail

fileName

public java.lang.String fileName()
Gets the attachment file name.

Returns:
file name of the attachment

content

public ByteString content()
Gets the content of the file attachment.

Returns:
content of the file attachment