org.apache.fop.pdf
Class DCTFilter
java.lang.Object
org.apache.fop.pdf.PDFFilter
org.apache.fop.pdf.DCTFilter
- public class DCTFilter
- extends PDFFilter
DCT Filter class. Right now it is just used as a dummy filter flag so
we can write JPG images to the PDF. The encode method just returns the
data passed to it. In the future an actual JPEG compression should be
added to the encode method so other images can be compressed.
- Author:
- Eric Dalquist
Method Summary |
byte[] |
encode(byte[] data)
encode the given data with the filter |
String |
getDecodeParms()
return a parameter dictionary for this filter, or null |
String |
getName()
return a PDF string representation of the filter, e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCTFilter
public DCTFilter()
getName
public String getName()
- Description copied from class:
PDFFilter
- return a PDF string representation of the filter, e.g. /FlateDecode
- Specified by:
getName
in class PDFFilter
getDecodeParms
public String getDecodeParms()
- Description copied from class:
PDFFilter
- return a parameter dictionary for this filter, or null
- Specified by:
getDecodeParms
in class PDFFilter
encode
public byte[] encode(byte[] data)
- Description copied from class:
PDFFilter
- encode the given data with the filter
- Specified by:
encode
in class PDFFilter
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.