org.pdfclown.documents.files.SimpleFileSpecification Class Reference

Simple reference to the contents of another file [PDF:1.6:3.10.2]. More...

Inheritance diagram for org.pdfclown.documents.files.SimpleFileSpecification:
org.pdfclown.documents.files.FileSpecification org.pdfclown.objects.PdfObjectWrapper< PdfDirectObject > org.pdfclown.objects.IPdfNamedObjectWrapper org.pdfclown.objects.IPdfObjectWrapper

List of all members.

Public Member Functions

virtual object Clone (Document context)
 Gets a clone of the object, registered inside the given document context.
virtual bool Delete ()
 Removes the object from its document context.
override bool Equals (object obj)
string GetAbsolutePath ()
 Gets the file absolute path.
override int GetHashCode ()
virtual bytes::IInputStream GetInputStream ()
 Gets an input stream to read from the file.
virtual bytes::IOutputStream GetOutputStream ()
 Gets an output stream to write into the file.

Static Public Member Functions

static FullFileSpecification Get (Document context, Uri url)
 Creates a new reference to a remote file.
static FullFileSpecification Get (EmbeddedFile embeddedFile, string filename)
 Creates a new reference to an embedded file.
static FileSpecification Get (Document context, string path, bool full)
 Creates a new reference to a file.
static SimpleFileSpecification Get (Document context, string path)
 Creates a new reference to an external file.
static PdfDirectObject GetBaseObject (PdfObjectWrapper wrapper)
 Gets the PDF object backing the specified wrapper.
static FileSpecification Wrap (PdfDirectObject baseObject)
 Instantiates an existing file reference.

Protected Member Functions

void CheckCompatibility (object feature)
 Checks whether the specified feature is compatible with the document's conformance version.
virtual PdfString RetrieveName ()
 Retrieves the name possibly associated to this object, walking through the document's name dictionary.
PdfDirectObject RetrieveNamedBaseObject ()
 Retrieves the object name, if available; otherwise, behaves like PdfObjectWrapper.BaseObject.

Properties

PdfDirectObject BaseObject [get]
 Gets the underlying reference object, if available; otherwise, gets the underlying data object.
virtual PdfDirectObject BaseObject [get, set]
PdfIndirectObject Container [get]
 Gets the indirect object containing the base object.
PdfIndirectObject DataContainer [get]
 Gets the indirect object containing the base data object.
Document Document [get]
 Gets the document context.
File File [get]
 Gets the file context.
PdfString Name [get]
 Gets the object name.
PdfDirectObject NamedBaseObject [get]
 Gets the object name, if available; otherwise, behaves like BaseObject.
override string Path [get]
 Gets the file path.

Simple reference to the contents of another file [PDF:1.6:3.10.2].


Member Function Documentation

void org.pdfclown.objects.PdfObjectWrapper.CheckCompatibility ( object  feature  )  [protected, inherited]

Checks whether the specified feature is compatible with the document's conformance version.

Parameters:
feature Entity whose compatibility has to be checked. Supported types:

virtual object org.pdfclown.objects.PdfObjectWrapper.Clone ( Document  context  )  [virtual, inherited]

Gets a clone of the object, registered inside the given document context.

Parameters:
context Which document the clone has to be registered in.
virtual bool org.pdfclown.objects.PdfObjectWrapper.Delete (  )  [virtual, inherited]

Removes the object from its document context.

The object is no more usable after this method returns.

Returns:
Whether the object was actually decontextualized (only indirect objects can be decontextualize).
override bool org.pdfclown.objects.PdfObjectWrapper.Equals ( object  obj  )  [inherited]
static FullFileSpecification org.pdfclown.documents.files.FileSpecification.Get ( Document  context,
Uri  url 
) [static, inherited]

Creates a new reference to a remote file.

Parameters:
context Document context.
url Remote file location.
static FullFileSpecification org.pdfclown.documents.files.FileSpecification.Get ( EmbeddedFile  embeddedFile,
string  filename 
) [static, inherited]

Creates a new reference to an embedded file.

Parameters:
embeddedFile Embedded file corresponding to the reference.
filename Name corresponding to the reference.
static FileSpecification org.pdfclown.documents.files.FileSpecification.Get ( Document  context,
string  path,
bool  full 
) [static, inherited]

Creates a new reference to a file.

Parameters:
context Document context.
path File path.
full Whether the reference is able to support extended dependencies.
static SimpleFileSpecification org.pdfclown.documents.files.FileSpecification.Get ( Document  context,
string  path 
) [static, inherited]

Creates a new reference to an external file.

Parameters:
context Document context.
path File path.

References org.pdfclown.documents.files.FileSpecification.Get().

Referenced by org.pdfclown.documents.files.FileSpecification.Get().

string org.pdfclown.documents.files.FileSpecification.GetAbsolutePath (  )  [inherited]

Gets the file absolute path.

static PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.GetBaseObject ( PdfObjectWrapper< PdfDirectObject wrapper  )  [static, inherited]

Gets the PDF object backing the specified wrapper.

Parameters:
wrapper Object to extract the base from.
override int org.pdfclown.objects.PdfObjectWrapper.GetHashCode (  )  [inherited]
virtual bytes::IInputStream org.pdfclown.documents.files.FileSpecification.GetInputStream (  )  [virtual, inherited]

Gets an input stream to read from the file.

Reimplemented in org.pdfclown.documents.files.FullFileSpecification.

Referenced by org.pdfclown.objects.PdfStream.GetBody().

virtual bytes::IOutputStream org.pdfclown.documents.files.FileSpecification.GetOutputStream (  )  [virtual, inherited]

Gets an output stream to write into the file.

Reimplemented in org.pdfclown.documents.files.FullFileSpecification.

Referenced by org.pdfclown.objects.PdfStream.WriteTo().

virtual PdfString org.pdfclown.objects.PdfObjectWrapper.RetrieveName (  )  [protected, virtual, inherited]

Retrieves the name possibly associated to this object, walking through the document's name dictionary.

PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.RetrieveNamedBaseObject (  )  [protected, inherited]

Retrieves the object name, if available; otherwise, behaves like PdfObjectWrapper.BaseObject.

static FileSpecification org.pdfclown.documents.files.FileSpecification.Wrap ( PdfDirectObject  baseObject  )  [static, inherited]

Instantiates an existing file reference.

Parameters:
baseObject Base object.

References org.pdfclown.objects.PdfObject.Resolve().


Property Documentation

PdfDirectObject org.pdfclown.objects.IPdfObjectWrapper.BaseObject [get, inherited]

Gets the underlying reference object, if available; otherwise, gets the underlying data object.

Implemented in org.pdfclown.objects.PdfObjectWrapper.

Referenced by org.pdfclown.documents.interaction.actions.SetLayerState.LayerStates.Add(), and org.pdfclown.documents.interaction.actions.SetLayerState.LayerStates.Insert().

virtual PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.BaseObject [get, set, inherited]

Gets the underlying reference object, if available; otherwise, gets the underlying data object.

PdfIndirectObject org.pdfclown.objects.PdfObjectWrapper.Container [get, inherited]

Gets the indirect object containing the base object.

PdfIndirectObject org.pdfclown.objects.PdfObjectWrapper.DataContainer [get, inherited]

Gets the indirect object containing the base data object.

Document org.pdfclown.objects.PdfObjectWrapper.Document [get, inherited]

Gets the document context.

File org.pdfclown.objects.PdfObjectWrapper.File [get, inherited]

Gets the file context.

PdfString org.pdfclown.documents.files.FileSpecification.Name [get, inherited]

Gets the object name.

As names are tipically loosely-coupled with their corresponding PDF objects, name retrieval implies a costly reverse lookup into the document's name tree.

Implements org.pdfclown.objects.IPdfNamedObjectWrapper.

PdfDirectObject org.pdfclown.documents.files.FileSpecification.NamedBaseObject [get, inherited]

Gets the object name, if available; otherwise, behaves like BaseObject.

Implements org.pdfclown.objects.IPdfNamedObjectWrapper.

override string org.pdfclown.documents.files.SimpleFileSpecification.Path [get]

Gets the file path.

Reimplemented from org.pdfclown.documents.files.FileSpecification.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.

Generated on Sat Feb 9 21:08:35 2013 for PDF Clown 0.1.2 by  doxygen 1.6.3