|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.iff.DefaultChunk
public class DefaultChunk
This is the default implementation of the Chunk interface.
Field Summary | |
---|---|
protected MemoryAccess |
memaccess
The memory access object. |
Fields inherited from interface org.zmpp.iff.Chunk |
---|
CHUNK_HEADER_LENGTH, CHUNK_ID_LENGTH, CHUNK_SIZEWORD_LENGTH |
Constructor Summary | |
---|---|
DefaultChunk(MemoryAccess memaccess)
Constructor. |
Method Summary | |
---|---|
byte[] |
getId()
Returns this IFF chunk's id. |
MemoryAccess |
getMemoryAccess()
Returns a memory access object to the chunk. |
int |
getSize()
The chunk data size, excluding id and size word. |
boolean |
isValid()
Returns true if this is a valid chunk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MemoryAccess memaccess
Constructor Detail |
---|
public DefaultChunk(MemoryAccess memaccess)
memaccess
- a memory access object to the chunk dataMethod Detail |
---|
public boolean isValid()
isValid
in interface Chunk
public byte[] getId()
getId
in interface Chunk
public int getSize()
getSize
in interface Chunk
public MemoryAccess getMemoryAccess()
getMemoryAccess
in interface Chunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |