java.lang.Object
org.monte.media.iff.IFFChunk
IFF Chunks form the building blocks of an IFF file. This class is made for
reading purposes only. See MutableIFFChunk for writing purposes.
- Author:
- Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollectionChunk(IFFChunk chunk) booleanIFFChunk[]getCollectionChunks(int id) byte[]getData()Gets the data.intgetID()getPropertyChunk(int id) longgetScan()longgetSize()intgetType()inthashCode()voidputPropertyChunk(IFFChunk chunk) voidsetData(byte[] data) Sets the data.toString()
-
Constructor Details
-
IFFChunk
public IFFChunk(int type, int id) -
IFFChunk
public IFFChunk(int type, int id, long size, long scan) -
IFFChunk
-
-
Method Details
-
getID
public int getID()- Returns:
- ID of chunk.
-
getType
public int getType()- Returns:
- Type of chunk.
-
getSize
public long getSize()- Returns:
- Size of chunk.
-
getScan
public long getScan()- Returns:
- Scan position of chunk within the file.
-
putPropertyChunk
-
getPropertyChunk
-
propertyChunks
-
addCollectionChunk
-
getCollectionChunks
-
collectionChunks
-
setData
public void setData(byte[] data) Sets the data. Note: The array will not be cloned. -
getData
public byte[] getData()Gets the data. Note: The array will not be cloned. -
equals
-
hashCode
public int hashCode() -
toString
-