|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.files.File
public final class File
PDF file representation.
Nested Class Summary | |
---|---|
static class |
File.Configuration
File configuration. |
Constructor Summary | |
---|---|
File()
|
|
File(IInputStream stream)
|
|
File(String path)
|
Method Summary | |
---|---|
void |
close()
|
protected void |
finalize()
|
Cloner |
getCloner()
Gets the default cloner. |
File.Configuration |
getConfiguration()
Gets the file configuration. |
Document |
getDocument()
Gets the high-level representation of the file content. |
FileIdentifier |
getID()
Gets the identifier of this file. |
IndirectObjects |
getIndirectObjects()
Gets the indirect objects collection. |
String |
getPath()
Gets the file path. |
Reader |
getReader()
Gets the data reader backing this file. |
PdfDictionary |
getTrailer()
Gets the file trailer. |
Version |
getVersion()
Gets the file header version [PDF:1.6:3.4.1]. |
int |
hashCode()
|
PdfReference |
register(PdfDataObject object)
Registers an internal data object. |
void |
save()
Serializes the file to the current file-system path using the standard serialization mode . |
void |
save(File file,
SerializationModeEnum mode)
Serializes the file to the specified file-system file. |
void |
save(IOutputStream stream,
SerializationModeEnum mode)
Serializes the file to the specified stream. |
void |
save(SerializationModeEnum mode)
Serializes the file to the current file-system path. |
void |
save(String path,
SerializationModeEnum mode)
Serializes the file to the specified file-system path. |
void |
setCloner(Cloner value)
|
void |
setPath(String value)
|
void |
unregister(PdfReference reference)
Unregisters an internal object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public File()
public File(String path) throws FileNotFoundException
FileNotFoundException
public File(IInputStream stream)
Method Detail |
---|
public Cloner getCloner()
public File.Configuration getConfiguration()
public Document getDocument()
public FileIdentifier getID()
public IndirectObjects getIndirectObjects()
public String getPath()
public Reader getReader()
null
in case of newly-created file.public PdfDictionary getTrailer()
public Version getVersion()
This property represents just the original file version; to get the actual version,
use the Document.getVersion
method.
public int hashCode()
hashCode
in class Object
public PdfReference register(PdfDataObject object)
public void save() throws IOException
standard serialization mode
.
IOException
public void save(SerializationModeEnum mode) throws IOException
mode
- Serialization mode.
IOException
public void save(String path, SerializationModeEnum mode) throws IOException
path
- Target path.mode
- Serialization mode.
IOException
public void save(File file, SerializationModeEnum mode) throws IOException
file
- Target file.mode
- Serialization mode.
IOException
public void save(IOutputStream stream, SerializationModeEnum mode)
It's caller responsibility to close the stream after this method ends.
stream
- Target stream.mode
- Serialization mode.public void setCloner(Cloner value)
getCloner()
public void setPath(String value)
getPath()
public void unregister(PdfReference reference)
public void close() throws IOException
close
in interface Closeable
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |