| Home >> All >> com >> sixlegs >> image >> [ png Javadoc ] |
Source code: com/sixlegs/image/png/UserChunk.java
1 // Copyright (C) 1998, 1999, 2001 Chris Nokleberg 2 // Please see included LICENSE.TXT 3 4 package com.sixlegs.image.png; 5 6 import java.io.IOException; 7 8 final class UserChunk 9 extends Chunk 10 { 11 private ChunkHandler handler; 12 13 UserChunk(ChunkHandler h, int type) 14 { 15 super(type); 16 handler = h; 17 } 18 19 protected void readData() 20 throws IOException 21 { 22 byte[] bytes = new byte[length]; 23 in_data.read(bytes, 0, length); 24 handler.handleChunk(typeToString(type), bytes); 25 } 26 }