org.monte.media.riff
Class RIFFChunk
java.lang.Object
org.monte.media.riff.RIFFChunk
public class RIFFChunk
- extends java.lang.Object
RIFF Chunks form the building blocks of a RIFF file.
- Version:
- $Id: RIFFChunk.java 299 2013-01-03 07:40:18Z werner $
- Author:
- Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RIFFChunk
public RIFFChunk(int type,
int id)
RIFFChunk
public RIFFChunk(int type,
int id,
long size,
long scan)
RIFFChunk
public RIFFChunk(int type,
int id,
long size,
long scan,
RIFFChunk propGroup)
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
public void putPropertyChunk(RIFFChunk chunk)
getPropertyChunk
public RIFFChunk getPropertyChunk(int id)
propertyChunks
public java.util.Enumeration propertyChunks()
addCollectionChunk
public void addCollectionChunk(RIFFChunk chunk)
getCollectionChunks
public RIFFChunk[] getCollectionChunks(int id)
collectionChunks
public java.util.Iterator 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
public boolean equals(java.lang.Object another)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
setParserMessage
public void setParserMessage(java.lang.String newValue)
getParserMessage
public java.lang.String getParserMessage()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object