intarsys PDF library API

de.intarsys.pdf.pd
Class PDEmbeddedFile

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.pd.PDEmbeddedFile
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport

public class PDEmbeddedFile
extends PDObject

An embedding of another file (and optional content) within the PDF.


Nested Class Summary
static class PDEmbeddedFile.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_Type_EmbeddedFile
           
static PDEmbeddedFile.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
 COSDictionary cosGetDict()
          Get the base object as a COSDictionary.
 byte[] getBytes()
          get the data representing the XObject
 void setBytes(byte[] bytes)
          set the data representing the XObject
 
Methods inherited from class de.intarsys.pdf.pd.PDObject
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString
 
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject
changed, cosGetArray, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

META

public static final PDEmbeddedFile.MetaClass META
The meta class instance


CN_Type_EmbeddedFile

public static final COSName CN_Type_EmbeddedFile
Method Detail

cosGetDict

public COSDictionary cosGetDict()
Description copied from class: COSBasedObject
Get the base object as a COSDictionary.

This will throw a ClassCastException if the base type is not appropriate!

Overrides:
cosGetDict in class COSBasedObject
Returns:
Get the base object as a COSDictionary.

getBytes

public byte[] getBytes()
get the data representing the XObject

Returns:
get the data representing the XObject

setBytes

public void setBytes(byte[] bytes)
set the data representing the XObject

Parameters:
bytes - the data representing the XObject

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.