DixShtix

com.dixshtix.riff
Class GenericChunk

java.lang.Object
  |
  +--com.dixshtix.riff.GenericChunk
Direct Known Subclasses:
ContainerChunk

public class GenericChunk
extends java.lang.Object


Field Summary
private  byte[] contents
           
private  FourByteConstant fcc
           
private  int length
           
 
Constructor Summary
GenericChunk()
           
GenericChunk(FourByteConstant fcc, int length, byte[] contents)
           
 
Method Summary
 byte[] getContents()
           
 byte getContents(int index)
           
 int getLength()
           
 FourByteConstant getType()
           
 boolean isContainer()
           
 void setContents(byte[] contents)
           
 void setContents(int index, byte content)
           
 void setLength(int length)
           
 void setType(FourByteConstant fcc)
           
 void writeRIFF(OutStream out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fcc

private FourByteConstant fcc

length

private int length

contents

private byte[] contents
Constructor Detail

GenericChunk

public GenericChunk()

GenericChunk

public GenericChunk(FourByteConstant fcc,
                    int length,
                    byte[] contents)
Method Detail

getContents

public byte[] getContents()

getContents

public byte getContents(int index)

getLength

public int getLength()

getType

public FourByteConstant getType()

isContainer

public boolean isContainer()

setContents

public void setContents(byte[] contents)

setContents

public void setContents(int index,
                        byte content)

setLength

public void setLength(int length)

setType

public void setType(FourByteConstant fcc)

writeRIFF

public void writeRIFF(OutStream out)

DixShtix