Class IFFChunk

java.lang.Object
org.monte.media.iff.IFFChunk

public class IFFChunk extends Object
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 Details

    • IFFChunk

      public IFFChunk(int type, int id)
    • IFFChunk

      public IFFChunk(int type, int id, long size, long scan)
    • IFFChunk

      public IFFChunk(int type, int id, long size, long scan, IFFChunk 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(IFFChunk chunk)
    • getPropertyChunk

      public IFFChunk getPropertyChunk(int id)
    • propertyChunks

      public Iterable<IFFChunk> propertyChunks()
    • addCollectionChunk

      public void addCollectionChunk(IFFChunk chunk)
    • getCollectionChunks

      public IFFChunk[] getCollectionChunks(int id)
    • collectionChunks

      public Iterable<IFFChunk> 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
    • toString

      public String toString()
      Overrides:
      toString in class Object