Class PDFCCITTFaxProducer
- java.lang.Object
- 
- java.io.OutputStream
- 
- com.inductiveautomation.rm.pdf.reader.PDFCCITTFaxProducer
 
 
- 
- All Implemented Interfaces:
- java.awt.image.ImageProducer,- java.io.Closeable,- java.io.Flushable,- java.lang.AutoCloseable
 
 public class PDFCCITTFaxProducer extends java.io.OutputStream implements java.awt.image.ImageProducerThis class is an image producer that uses the RBCodecCCITTFaxDecoder to produce the bits of a 1bpp monochrome image. This is used as an optimization for when decoding the entire image at once would be too expensive. Instead of holding on to all the bytes of a decompressed 8bpp BufferedImage, this class holds on to the compressed bit stream and produces the image as needed.
- 
- 
Constructor SummaryConstructors Constructor Description PDFCCITTFaxProducer(RBCodecCCITTFaxDecode decoder)Create a new image producer for the codec.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConsumer(java.awt.image.ImageConsumer ic)ImageProducer method - add a new consumervoidflush()RBCodecCCITTFaxDecodegetCodec()returns the decoder, should you need it.booleanisConsumer(java.awt.image.ImageConsumer ic)ImageProducer method - check to see if we are sending bits to icvoidproduce()The blood & gutsvoidremoveConsumer(java.awt.image.ImageConsumer ic)ImageProducer methodvoidrequestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)ImageProducer method - send all the bits to the given consumervoidstartProduction(java.awt.image.ImageConsumer ic)ImageProducer method - kicks things off.voidwrite(byte[] b)voidwrite(int b)
 
- 
- 
- 
Constructor Detail- 
PDFCCITTFaxProducerpublic PDFCCITTFaxProducer(RBCodecCCITTFaxDecode decoder) Create a new image producer for the codec.
 
- 
 - 
Method Detail- 
addConsumerpublic void addConsumer(java.awt.image.ImageConsumer ic) ImageProducer method - add a new consumer- Specified by:
- addConsumerin interface- java.awt.image.ImageProducer
 
 - 
isConsumerpublic boolean isConsumer(java.awt.image.ImageConsumer ic) ImageProducer method - check to see if we are sending bits to ic- Specified by:
- isConsumerin interface- java.awt.image.ImageProducer
 
 - 
removeConsumerpublic void removeConsumer(java.awt.image.ImageConsumer ic) ImageProducer method- Specified by:
- removeConsumerin interface- java.awt.image.ImageProducer
 
 - 
startProductionpublic void startProduction(java.awt.image.ImageConsumer ic) ImageProducer method - kicks things off.- Specified by:
- startProductionin interface- java.awt.image.ImageProducer
 
 - 
requestTopDownLeftRightResendpublic void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic) ImageProducer method - send all the bits to the given consumer- Specified by:
- requestTopDownLeftRightResendin interface- java.awt.image.ImageProducer
 
 - 
producepublic void produce() The blood & guts
 - 
getCodecpublic RBCodecCCITTFaxDecode getCodec() returns the decoder, should you need it.
 - 
writepublic void write(byte[] b) throws java.io.IOException- Overrides:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
flushpublic void flush() throws java.io.IOException- Specified by:
- flushin interface- java.io.Flushable
- Overrides:
- flushin class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
writepublic void write(int b) throws java.io.IOException- Specified by:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 
- 
 
-