Class IDATReader

java.lang.Object
pixy.image.png.IDATReader
All Implemented Interfaces:
Reader

public class IDATReader
extends java.lang.Object
implements Reader
PNG IDAT chunk reader

All the IDAT chunks must be merged together before using this reader, as per PNG specification, the compressed data stream is the concatenation of the contents of all the IDAT chunks.

Version:
1.0 04/26/2013
Author:
Wen Yu, yuwen_66@yahoo.com
  • Constructor Summary

    Constructors 
    Constructor Description
    IDATReader()  
    IDATReader​(int bufLen)  
  • Method Summary

    Modifier and Type Method Description
    IDATReader addChunk​(Chunk chunk)  
    byte[] getData()  
    void read()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addChunk

      public IDATReader addChunk​(Chunk chunk)
    • getData

      public byte[] getData() throws java.io.IOException
      Throws:
      java.io.IOException
    • read

      public void read() throws java.io.IOException
      Specified by:
      read in interface Reader
      Throws:
      java.io.IOException