public abstract class Chunk
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
bytesLeft |
protected java.io.RandomAccessFile |
raf |
Constructor and Description |
---|
Chunk(java.io.RandomAccessFile raf,
ChunkHeader hdr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
byteBufString(byte[] b)
Convert a byte buffer cleanly to an ASCII string.
|
abstract boolean |
readChunk()
Reads a chunk and puts appropriate information into
the RepInfo object.
|
public Chunk(java.io.RandomAccessFile raf, ChunkHeader hdr)
module
- The Module under which this was calledhdr
- The header for this chunkdstrm
- The stream from which the data are being readpublic abstract boolean readChunk() throws java.io.IOException
info
- RepInfo object to receive informationfalse
if the chunk is structurally
invalid, otherwise true
java.io.IOException
protected java.lang.String byteBufString(byte[] b)
Copyright © 2005-2013 java.net. All Rights Reserved.