Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.adobe.pdf
Interface FileAttachment

public interface FileAttachment

FileAttachment defines a public interface for referencing embedded file streams that can be archived or transmitted along with a PDF file. An embedded file stream is a file attachment that a user can open and view while the PDF document is open in Adobe Reader® (or Adobe Acrobat® Professional and Acrobat Standard). Using this interface, you can perform file attachment operations. For example, you can create a new file attachment and embed it into a PDF document.

Method Summary
`java.io.InputStream` | `getData()` Returns the data of the file attachment.
`java.lang.String` | `getFilename()` Returns the file name associated with the data embedded in the document.
`java.lang.String` | `getMimetype()` Returns the MIME type of the data embedded in the document.

Method Detail

### getFilename

    public java.lang.String getFilename()

  Returns the file name associated with the data embedded in the document.

  Returns:
    A java.lang.String object that represents the file name.

### getMimetype

    public java.lang.String getMimetype()

  Returns the MIME type of the data embedded in the document.

  Returns:
    A java.lang.String object that represents the MIME type of the embedded file.

### getData

    public java.io.InputStream getData()

  Returns the data of the file attachment.

  Returns:
    A java.io.InputStream that contains the file attachment data.

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD