com.aspose.network
Class Attachment

java.lang.Object
  extended by com.aspose.network.AttachmentBase
      extended by com.aspose.network.Attachment
All Implemented Interfaces:
com.aspose.ms.System.IDisposable, IPreferredTextEncodingProvider

public class Attachment
extends AttachmentBase
implements IPreferredTextEncodingProvider


Constructor Summary
Attachment(InputStream contentStream, ContentType contentType)
           
Attachment(InputStream contentStream, String name)
           
Attachment(InputStream contentStream, String name, String mediaType)
           
Attachment(String fileName)
           
Attachment(String fileName, ContentType contentType)
           
Attachment(String fileName, String mediaType)
           
 
Method Summary
static Attachment createAttachmentFromString(String content, ContentType contentType)
           
static Attachment createAttachmentFromString(String content, String name)
           
static Attachment createAttachmentFromString(String content, String name, Charset contentEncoding, String mediaType)
           
 ContentDisposition getContentDisposition()
           
 String getName()
           
 Charset getNameEncoding()
           
 Charset getPreferredTextEncoding()
           
 com.aspose.ms.System.Text.Encoding getPreferredTextEncodingInternal()
           
 void setName(String value)
           
 void setNameEncoding(Charset value)
           
 void setPreferredTextEncoding(Charset value)
           
 void setPreferredTextEncodingInternal(com.aspose.ms.System.Text.Encoding value)
           
 
Methods inherited from class com.aspose.network.AttachmentBase
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(String fileName)

Attachment

public Attachment(String fileName,
                  String mediaType)

Attachment

public Attachment(String fileName,
                  ContentType contentType)

Attachment

public Attachment(InputStream contentStream,
                  String name)

Attachment

public Attachment(InputStream contentStream,
                  String name,
                  String mediaType)

Attachment

public Attachment(InputStream contentStream,
                  ContentType contentType)
Method Detail

getName

public String getName()

setName

public void setName(String value)

getNameEncoding

public Charset getNameEncoding()

setNameEncoding

public void setNameEncoding(Charset value)

getContentDisposition

public ContentDisposition getContentDisposition()

getPreferredTextEncodingInternal

public com.aspose.ms.System.Text.Encoding getPreferredTextEncodingInternal()

getPreferredTextEncoding

public Charset getPreferredTextEncoding()
Specified by:
getPreferredTextEncoding in interface IPreferredTextEncodingProvider

setPreferredTextEncodingInternal

public void setPreferredTextEncodingInternal(com.aspose.ms.System.Text.Encoding value)

setPreferredTextEncoding

public void setPreferredTextEncoding(Charset value)
Specified by:
setPreferredTextEncoding in interface IPreferredTextEncodingProvider

createAttachmentFromString

public static Attachment createAttachmentFromString(String content,
                                                    String name)

createAttachmentFromString

public static Attachment createAttachmentFromString(String content,
                                                    String name,
                                                    Charset contentEncoding,
                                                    String mediaType)

createAttachmentFromString

public static Attachment createAttachmentFromString(String content,
                                                    ContentType contentType)


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.