Packageorg.purepdf.pdf
Classpublic class PdfStream
InheritancePdfStream Inheritance PdfDictionary Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash
Subclasses PdfContents, PdfEFStream, PdfFormXObject, PdfImage, PdfPattern, PRStream, StreamFont



Public Properties
 PropertyDefined By
 Inheritedsize : int
[read-only]
PdfDictionary
Protected Properties
 PropertyDefined By
 Inheritedbytes : Bytes
PdfObject
  compressed : Boolean = false
PdfStream
  compressionLevel : int = 9
PdfStream
 InheriteddictionaryType : PdfName
PdfDictionary
 InheritedhashMap : HashMap
PdfDictionary
 InheritedindRef : PRIndirectReference
PdfObject
  inputStream : ByteArray
PdfStream
  inputStreamLength : int = -1
PdfStream
  rawLength : int
PdfStream
  ref : PdfIndirectReference
PdfStream
  streamBytes : ByteArray = null
PdfStream
 Inheritedtype : int
PdfObject
  writer : PdfWriter
PdfStream
Public Methods
 MethodDefined By
  
PdfStream($byte:Bytes = null)
PdfStream
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
 Inherited
contains(key:PdfName):Boolean
PdfDictionary
 Inherited
dispose():void
PdfObject
  
flateCompress(compressionLevel:int):void
PdfStream
 Inherited
Returns a PdfObject as a PdfArray, resolving indirect references.
PdfDictionary
 Inherited
PdfDictionary
 Inherited
Returns a PdfObject as a PdfNumber, resolving indirect references.
PdfDictionary
 Inherited
PdfObject
 Inherited
Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object.
PdfDictionary
 Inherited
PdfObject
 Inherited
getKeys():KeySet
PdfDictionary
  
PdfStream
 Inherited
getType():int
PdfObject
 Inherited
PdfDictionary
 Inherited
isArray():Boolean
PdfObject
 Inherited
isBoolean():Boolean
PdfObject
 Inherited
isDictionary():Boolean
PdfObject
 Inherited
isIndirect():Boolean
PdfObject
 Inherited
isName():Boolean
PdfObject
 Inherited
isNull():Boolean
PdfObject
 Inherited
isNumber():Boolean
PdfObject
 Inherited
isStream():Boolean
Checks if this PdfObject is of the type PdfStream
PdfObject
 Inherited
isString():Boolean
PdfObject
 Inherited
merge(other:PdfDictionary):void
PdfDictionary
 Inherited
PdfDictionary
 Inherited
put(key:PdfName, object:PdfObject):void
PdfDictionary
 Inherited
putAll(other:PdfDictionary):void
PdfDictionary
 Inherited
putEx(key:PdfName, value:PdfObject):void
Associates the specified PdfObject as value to the specified PdfName as key in this map.
PdfDictionary
 Inherited
remove(key:PdfName):void
PdfDictionary
 Inherited
Set the indirect reference
PdfObject
  
toPdf(writer:PdfWriter, os:IOutputStream):void
[override]
PdfStream
  
toString():String
[override]
PdfStream
Protected Methods
 MethodDefined By
 Inherited
setContent(content:String):void
PdfObject
  
PdfStream
Public Constants
 ConstantDefined By
 InheritedARRAY : int = 5
[static]
PdfObject
  BEST_COMPRESSION : int = 9
[static]
PdfStream
 InheritedBOOLEAN : int = 1
[static]
PdfObject
 InheritedCATALOG : PdfName
[static]
PdfDictionary
 InheritedDICTIONARY : int = 6
[static]
PdfObject
 InheritedINDIRECT : int = 10
[static]
PdfObject
 InheritedNAME : int = 4
[static]
PdfObject
  NO_COMPRESSION : int = 0
[static]
PdfStream
 InheritedNOTHING : String
[static]
PdfObject
 InheritedNULL : int = 8
[static]
PdfObject
 InheritedNUMBER : int = 2
[static]
PdfObject
 InheritedOUTLINES : PdfName
[static]
PdfDictionary
 InheritedPAGE : PdfName
[static]
PdfDictionary
 InheritedSTREAM : int = 7
[static]
PdfObject
 InheritedSTRING : int = 3
[static]
PdfObject
 InheritedTEXT_PDFDOCENCODING : String = PDF
[static]
PdfObject
 InheritedTEXT_UNICODE : String = UnicodeBig
[static]
PdfObject
Protected Constants
 ConstantDefined By
  ENDSTREAM : Bytes
[static]
PdfStream
  SIZESTREAM : int
[static]
PdfStream
  STARTSTREAM : Bytes
[static]
PdfStream
Property Detail
compressedproperty
protected var compressed:Boolean = false

compressionLevelproperty 
protected var compressionLevel:int = 9

inputStreamproperty 
protected var inputStream:ByteArray

inputStreamLengthproperty 
protected var inputStreamLength:int = -1

rawLengthproperty 
protected var rawLength:int

refproperty 
protected var ref:PdfIndirectReference

streamBytesproperty 
protected var streamBytes:ByteArray = null

writerproperty 
protected var writer:PdfWriter

Constructor Detail
PdfStream()Constructor
public function PdfStream($byte:Bytes = null)



Parameters
$byte:Bytes (default = null)
Method Detail
flateCompress()method
public function flateCompress(compressionLevel:int):void

Parameters

compressionLevel:int

getRawLength()method 
public function getRawLength():int

Returns
int
superToPdf()method 
protected function superToPdf(writer:PdfWriter, os:IOutputStream):void

Parameters

writer:PdfWriter
 
os:IOutputStream

toPdf()method 
override public function toPdf(writer:PdfWriter, os:IOutputStream):void

Parameters

writer:PdfWriter
 
os:IOutputStream

toString()method 
override public function toString():String

Returns
String
Constant Detail
BEST_COMPRESSIONConstant
public static const BEST_COMPRESSION:int = 9

ENDSTREAMConstant 
protected static const ENDSTREAM:Bytes

NO_COMPRESSIONConstant 
public static const NO_COMPRESSION:int = 0

SIZESTREAMConstant 
protected static const SIZESTREAM:int

STARTSTREAMConstant 
protected static const STARTSTREAM:Bytes