Class RIFFChunk

java.lang.Object
org.monte.media.riff.RIFFChunk

public class RIFFChunk extends Object
RIFF Chunks form the building blocks of a RIFF file.
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
  • Constructor Details

    • 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)
  • 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

      public void putPropertyChunk(RIFFChunk chunk)
    • getPropertyChunk

      public RIFFChunk getPropertyChunk(int id)
    • propertyChunks

      public Iterable<RIFFChunk> propertyChunks()
    • addCollectionChunk

      public void addCollectionChunk(RIFFChunk chunk)
    • getCollectionChunks

      public RIFFChunk[] getCollectionChunks(int id)
    • collectionChunks

      public Iterable<RIFFChunk> 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(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setParserMessage

      public void setParserMessage(String newValue)
    • getParserMessage

      public String getParserMessage()
    • toString

      public String toString()
      Overrides:
      toString in class Object