public class ImageInputStreamDecoder extends AbstractDecoder
File decoder based on ImageInputStream (Chris' implementation).
© 2001 Christian Treber, ct@ctreber.com_pos, BIG_ENDIAN, LITTLE_ENDIAN
Constructor and Description |
---|
ImageInputStreamDecoder(javax.imageio.stream.ImageInputStream pStream)
Create a BIG_ENDIAN file decoder.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Call when done with decoder.
|
byte[] |
readBytes(long pBytes,
byte[] pBuffer)
Implemented by a specific decoder.
|
void |
seek(long pPos) |
getPos, readUInt1, readUInt2, readUInt4, readValue, setEndianess
public ImageInputStreamDecoder(javax.imageio.stream.ImageInputStream pStream)
AbstractDecoder.setEndianess(int)
to change the default behavior.pStream
- The image input stream to read from.public void seek(long pPos) throws IOException
seek
in class AbstractDecoder
pPos
- Position to advance to. Nothing will happen if the position
has already been passed.IOException
public byte[] readBytes(long pBytes, byte[] pBuffer) throws IOException
AbstractDecoder
readBytes
in class AbstractDecoder
pBytes
- Bytes to readpBuffer
- The buffer to write the read bytes to. If null, a buffer is
reserved.IOException
public void close() throws IOException
AbstractDecoder
close
in class AbstractDecoder
IOException
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)