public class PngReaderFilter extends FilterInputStream
PngReaderFilter reader = new PngReaderFilter(new FileInputStream("image.png")); BufferedImage image1 = ImageIO.read(reader); reader.readUntilEndAndClose(); // in case ImageIO.read() does not read the traling chunks (it happens) System.out.println(reader.getChunksList());
in
Constructor and Description |
---|
PngReaderFilter(InputStream arg0) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected ChunkSeqReaderPng |
createChunkSequenceReader() |
ChunkSeqReaderPng |
getChunkseq() |
List<PngChunk> |
getChunksList() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
readUntilEndAndClose() |
available, mark, markSupported, reset, skip
public PngReaderFilter(InputStream arg0)
protected ChunkSeqReaderPng createChunkSequenceReader()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public void readUntilEndAndClose() throws IOException
IOException
public ChunkSeqReaderPng getChunkseq()
Copyright © 2014. All rights reserved.