public class StreamDecoder extends AbstractDecoder
File decoder based on InputStream (Chris' implementation).
_pos, BIG_ENDIAN, LITTLE_ENDIAN
Constructor and Description |
---|
StreamDecoder(InputStream 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 pBytes) |
getPos, readUInt1, readUInt2, readUInt4, readValue, setEndianess
public StreamDecoder(InputStream pStream)
AbstractDecoder.setEndianess(int)
to change the default behavior.pStream
- public void seek(long pBytes) throws IOException
seek
in class AbstractDecoder
pBytes
- 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
com.ctreber.aclib.codec.AbstractDecoder#close()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)