Package com.reportmill.pdf
Class PDFStream
- java.lang.Object
 - 
- com.reportmill.base.RMObject
 - 
- com.reportmill.pdf.PDFStream
 
 
 
- 
- All Implemented Interfaces:
 RMArchiver.Archiving,java.lang.Cloneable
public class PDFStream extends RMObject
This class represents a PDF stream object. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(java.lang.String aName)java.lang.Objectclone()Standard clone implementation.static byte[]getBytesEncoded(PDFFile pdfFile, byte[] bytes, int offset, int length)Returns Flate encoded bytes from the given raw bytes.RMDatagetData()Returns the stream data.java.util.MapgetDictionary()Returns the stream dictionary.voidwritePDF(PDFFile pdfFile)Writes a stream to a pdf buffer.- 
Methods inherited from class com.reportmill.base.RMObject
copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PDFStream
public PDFStream(byte[] bytes, java.util.Map aMap)Creates a new stream from the byte array and map. 
- 
PDFStream
public PDFStream(RMData data, java.util.Map aMap)
Creates a new stream from the data and map. 
 - 
 
- 
Method Detail
- 
getData
public RMData getData()
Returns the stream data. 
- 
getDictionary
public java.util.Map getDictionary()
Returns the stream dictionary. 
- 
addFilter
public void addFilter(java.lang.String aName)
 
- 
getBytesEncoded
public static byte[] getBytesEncoded(PDFFile pdfFile, byte[] bytes, int offset, int length)
Returns Flate encoded bytes from the given raw bytes. 
- 
clone
public java.lang.Object clone()
Standard clone implementation. 
- 
writePDF
public void writePDF(PDFFile pdfFile)
Writes a stream to a pdf buffer. 
 - 
 
 -