public final class FileSpecification extends Object
Class representing embedded file.
Constructor and Description |
---|
FileSpecification()
Create new empty file specification.
|
FileSpecification(InputStream stream,
String name)
Constructor for file specification.
|
FileSpecification(InputStream stream,
String name,
String description)
Constructor for FileSpecification.
|
FileSpecification(com.aspose.pdf.engine.data.IPdfPrimitive specification) |
FileSpecification(com.aspose.ms.System.IO.Stream stream,
String name)
Constructor for file specification.
|
FileSpecification(com.aspose.ms.System.IO.Stream stream,
String name,
String description)
Constructor for FileSpecification.
|
FileSpecification(String file)
Constructor for FileSpecification
|
FileSpecification(String fileName,
Annotation annot) |
FileSpecification(String file,
String description)
Constructor for FileSpecification.
|
Modifier and Type | Method and Description |
---|---|
com.aspose.pdf.engine.data.IPdfDictionary |
createFileSpecification(com.aspose.pdf.engine.data.ITrailerable trailer)
Creates file specification
|
InputStream |
getContents()
Gets contents file.
|
com.aspose.ms.System.IO.Stream |
getContentsInternal()
Gets or sets contents file.
|
String |
getDescription()
Gets text associated with the file specification.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict()
Pdf dictionary containing information about the file.
|
com.aspose.pdf.engine.data.IPdfObject |
getEngineObj()
Internal only
|
String |
getFileSystem()
Gets name of the file system.
|
boolean |
getIncludeContents()
If true, contents of the file will be included in the file specification.
|
String |
getMIMEType()
Gets subtype of the embedded file
|
String |
getName()
Gets or sets file specification string.
|
FileParams |
getParams()
Gets file paramteres.
|
InputStream |
getStreamContents() |
void |
setContents(InputStream value)
Sets contents file.
|
void |
setDescription(String value)
Sets text associated with the file specification.
|
void |
setFileSystem(String value)
Sets name of the file system.
|
void |
setIncludeContents(boolean value) |
void |
setName(String value) |
public FileSpecification(com.aspose.pdf.engine.data.IPdfPrimitive specification)
public FileSpecification(String file)
Constructor for FileSpecification
file
- File path.public FileSpecification(com.aspose.ms.System.IO.Stream stream, String name)
Constructor for file specification.
stream
- Stream containing data file.name
- File specification.public FileSpecification(InputStream stream, String name)
Constructor for file specification.
stream
- Stream containing data file.name
- File specification.public FileSpecification(String file, String description)
Constructor for FileSpecification.
file
- File path.description
- File description.public FileSpecification(com.aspose.ms.System.IO.Stream stream, String name, String description)
Constructor for FileSpecification.
stream
- Stream to be used in the document.name
- A file specification string.description
- File description.public FileSpecification(InputStream stream, String name, String description)
Constructor for FileSpecification.
stream
- Stream to be used in the document.name
- A file specification string.description
- File description.public FileSpecification(String fileName, Annotation annot)
fileName
- annot
- public FileSpecification()
Create new empty file specification.
public boolean getIncludeContents()
If true, contents of the file will be included in the file specification.
public void setIncludeContents(boolean value)
public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()
Pdf dictionary containing information about the file. Internal only
public com.aspose.pdf.engine.data.IPdfObject getEngineObj()
Internal only
public String getDescription()
Gets text associated with the file specification.
public void setDescription(String value)
Sets text associated with the file specification.
public InputStream getStreamContents()
public com.aspose.ms.System.IO.Stream getContentsInternal()
Gets or sets contents file.
public InputStream getContents()
Gets contents file.
public void setContents(InputStream value)
Sets contents file.
public FileParams getParams()
Gets file paramteres.
public String getMIMEType()
Gets subtype of the embedded file
public String getName()
Gets or sets file specification string.
public void setName(String value)
public com.aspose.pdf.engine.data.IPdfDictionary createFileSpecification(com.aspose.pdf.engine.data.ITrailerable trailer)
Creates file specification
trailer
- Trailerable object.public String getFileSystem()
Gets name of the file system.
public void setFileSystem(String value)
Sets name of the file system.
Copyright © 2014 Aspose. All Rights Reserved.