|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.files.File
public class File
PDF file representation.
Nested Class Summary | |
---|---|
static class |
File.ResolvedObject<T extends PdfDataObject>
|
Constructor Summary | |
---|---|
File()
|
|
File(IInputStream stream)
|
|
File(String path)
|
Method Summary | ||
---|---|---|
void |
close()
|
|
protected void |
finalize()
|
|
Document |
getDocument()
|
|
IndirectObjects |
getIndirectObjects()
|
|
Reader |
getReader()
|
|
PdfDictionary |
getTrailer()
|
|
String |
getVersion()
Gets the file header version [PDF:1.6:3.4.1]. |
|
XRefEntry[] |
getXRefEntries()
|
|
int |
hashCode()
|
|
PdfReference |
register(PdfDataObject object)
Registers an internal data object. |
|
static PdfDataObject |
resolve(PdfObject object)
Forces a generic object to be expressed as its corresponding data object. |
|
static
|
resolve(PdfObject object,
IPdfIndirectObject container)
Resolves a generic object. |
|
void |
save()
Serializes the file to the current file-system path using the standard serialization mode. |
|
void |
save(SerializationModeEnum mode)
Serializes the file to the current file-system path. |
|
void |
unregister(PdfReference reference)
Unregisters an internal object. |
|
static boolean |
update(PdfDirectObject object)
Forces a direct object to be updated (whether possible). |
|
void |
writeTo(File file,
SerializationModeEnum mode)
Serializes the file to the specified file-system file. |
|
void |
writeTo(IOutputStream stream,
SerializationModeEnum mode)
Serializes the file to the specified stream. |
|
void |
writeTo(String path,
SerializationModeEnum mode)
Serializes the file to the specified file-system path. |
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 FileFormatException, FileNotFoundException
FileFormatException
FileNotFoundException
public File(IInputStream stream) throws FileFormatException
FileFormatException
Method Detail |
---|
public static PdfDataObject resolve(PdfObject object)
public static <T extends PdfDataObject> File.ResolvedObject<T> resolve(PdfObject object, IPdfIndirectObject container)
public static boolean update(PdfDirectObject object)
public Document getDocument()
public IndirectObjects getIndirectObjects()
public Reader getReader()
public PdfDictionary getTrailer()
public String getVersion()
This property represents just the original file version; to get the actual version,
use the Document.getVersion
method.
public XRefEntry[] getXRefEntries()
public int hashCode()
hashCode
in class Object
public PdfReference register(PdfDataObject object)
public void save() throws IOException
IOException
public void save(SerializationModeEnum mode) throws IOException
mode
- Serialization mode.
IOException
public void unregister(PdfReference reference)
public void writeTo(String path, SerializationModeEnum mode) throws IOException
path
- Target path.mode
- Serialization mode.
IOException
public void writeTo(File file, SerializationModeEnum mode) throws IOException
file
- Target file.mode
- Serialization mode.
IOException
public void writeTo(IOutputStream stream, SerializationModeEnum mode)
It's caller responsibility to close the stream after this method ends.
stream
- Target stream.mode
- Serialization mode.public void close() throws IOException
close
in interface Closeable
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |