webplugin.aclib.image
Class ImageInputStreamDecoder
java.lang.Object
webplugin.aclib.codec.AbstractDecoder
webplugin.aclib.image.ImageInputStreamDecoder
public class ImageInputStreamDecoder
- extends AbstractDecoder
File decoder based on ImageInputStream (Chris' implementation).
© 2001 Christian Treber, ct@ctreber.com
- Author:
- Christian Treber, ct@ctreber.com
|
Constructor Summary |
ImageInputStreamDecoder(javax.imageio.stream.ImageInputStream pStream)
Create a BIG_ENDIAN file decoder. |
|
Method Summary |
void |
close()
Call when done with decoder. |
byte[] |
readBytes(long pBytes,
byte[] pBuffer)
Implemented by a specific decoder. |
void |
seek(long pPos)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageInputStreamDecoder
public ImageInputStreamDecoder(javax.imageio.stream.ImageInputStream pStream)
- Create a BIG_ENDIAN file decoder. See
AbstractDecoder.setEndianess(int)to change the default behavior.
- Parameters:
pStream - The image input stream to read from.
seek
public void seek(long pPos)
throws IOException
- Specified by:
seek in class AbstractDecoder
- Parameters:
pPos - Position to advance to. Nothing will happen if the position
has already been passed.
- Throws:
IOException
readBytes
public byte[] readBytes(long pBytes,
byte[] pBuffer)
throws IOException
- Description copied from class:
AbstractDecoder
- Implemented by a specific decoder.
- Specified by:
readBytes in class AbstractDecoder
- Parameters:
pBytes - Bytes to readpBuffer - The buffer to write the read bytes to. If null, a buffer is
reserved.
- Returns:
- Array with the bytes read.
- Throws:
IOException
close
public void close()
throws IOException
- Description copied from class:
AbstractDecoder
- Call when done with decoder.
- Specified by:
close in class AbstractDecoder
- Throws:
IOException
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)