com.sixlegs.image.png
Interface ChunkHandler


public interface ChunkHandler

A class implementing the ChunkHandler interface can be registered using the PngImage.registerChunk method.

See Also:
PngImage.registerChunk(com.sixlegs.image.png.ChunkHandler, java.lang.String)

Method Summary
 void handleChunk(java.lang.String type, byte[] data)
          Process chunk data.
 

Method Detail

handleChunk

public void handleChunk(java.lang.String type,
                        byte[] data)
Process chunk data. This method is called upon encountering a chunk registered as being handled by the implementing class.

Parameters:
type - chunk type
data - raw chunk data
See Also:
PngImage.registerChunk(com.sixlegs.image.png.ChunkHandler, java.lang.String)