|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObject org.pdfclown.objects.PdfDataObject org.pdfclown.objects.PdfStream
public class PdfStream
PDF stream object [PDF:1.6:3.2.7].
Constructor Summary | |
---|---|
PdfStream()
|
|
PdfStream(IBuffer body)
|
|
PdfStream(PdfDictionary header)
|
|
PdfStream(PdfDictionary header,
IBuffer body)
|
Method Summary | |
---|---|
PdfObject |
accept(IVisitor visitor,
Object data)
Accepts a visit. |
PdfStream |
clone(File context)
Creates a deep copy of this object within the specified file context. |
IBuffer |
getBody()
Gets the decoded stream body. |
IBuffer |
getBody(boolean decode)
Gets the stream body. |
FileSpecification<?> |
getDataFile()
Gets the file containing the object data. |
PdfDirectObject |
getFilter()
|
PdfDictionary |
getHeader()
Gets the stream header. |
PdfDirectObject |
getParameters()
|
PdfObject |
getParent()
Gets the parent of this object. |
boolean |
isUpdateable()
Gets whether the detection of object state changes is enabled. |
boolean |
isUpdated()
Gets whether the initial state of this object has been modified. |
protected boolean |
isVirtual()
Gets whether this object acts like a null-object placeholder. |
void |
setDataFile(FileSpecification<?> value)
|
void |
setDataFile(FileSpecification<?> value,
boolean preserve)
|
protected void |
setFilter(PdfDirectObject value)
|
protected void |
setParameters(PdfDirectObject value)
|
void |
setUpdateable(boolean value)
|
protected void |
setUpdated(boolean value)
|
protected void |
setVirtual(boolean value)
|
PdfStream |
swap(PdfObject other)
Swaps contents between this object and the other one. |
void |
writeTo(IOutputStream stream,
File context)
Serializes this object to the specified stream. |
Methods inherited from class org.pdfclown.objects.PdfObject |
---|
clone, clone, getContainer, getDataContainer, getFile, getIndirectObject, getReference, resolve, resolve, unresolve, unresolve, update |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdfStream()
public PdfStream(PdfDictionary header)
public PdfStream(IBuffer body)
public PdfStream(PdfDictionary header, IBuffer body)
Method Detail |
---|
public PdfObject accept(IVisitor visitor, Object data)
IVisitable
accept
in interface IVisitable
visitor
- Visiting object.data
- Supplemental data.
public PdfStream clone(File context)
PdfObject
clone
in class PdfObject
public IBuffer getBody()
public IBuffer getBody(boolean decode)
decode
- Defines whether the body has to be decoded.public PdfDirectObject getFilter()
public PdfDictionary getHeader()
public PdfDirectObject getParameters()
public PdfObject getParent()
PdfObject
getParent
in class PdfObject
PdfObject.getContainer()
public boolean isUpdateable()
PdfObject
isUpdateable
in class PdfObject
public boolean isUpdated()
PdfObject
isUpdated
in class PdfObject
public void setDataFile(FileSpecification<?> value, boolean preserve)
preserve
- Indicates whether the data from the old data source substitutes the new one.
This way data can be imported to/exported from local or preserved in case of external file
location changed.setDataFile(FileSpecification)
public void setUpdateable(boolean value)
setUpdateable
in class PdfObject
PdfObject.isUpdateable()
public PdfStream swap(PdfObject other)
PdfObject
swap
in class PdfObject
other
- Object whose contents have to be swapped with this one's.
public void writeTo(IOutputStream stream, File context)
PdfObject
writeTo
in class PdfObject
stream
- Target stream.context
- File context.@PDF(value=PDF12) public FileSpecification<?> getDataFile()
IFileResource
getDataFile
in interface IFileResource
public void setDataFile(FileSpecification<?> value)
setDataFile
in interface IFileResource
IFileResource.getDataFile()
protected boolean isVirtual()
PdfObject
isVirtual
in class PdfObject
protected void setFilter(PdfDirectObject value)
getFilter()
protected void setParameters(PdfDirectObject value)
getParameters()
protected void setUpdated(boolean value)
setUpdated
in class PdfObject
PdfObject.isUpdated()
protected void setVirtual(boolean value)
setVirtual
in class PdfObject
PdfObject.isVirtual()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |