org.niffty
Class RiffAugmentationDot

java.lang.Object
  |
  +--org.niffty.RiffAugmentationDot

public class RiffAugmentationDot
extends java.lang.Object

A RiffAugmentationDot provides static methods for encoding/decoding an AugmentationDot using RIFF.


Method Summary
static AugmentationDot maybeNew(RIFF parentInput)
          Peek into the parentInput's input stream and if the next item is a NIFF augmentation dot, return a new AugmentationDot.
static AugmentationDot newInstance(RIFF parentInput)
          Creates a new AugmentationDot from the parentInput's input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static AugmentationDot newInstance(RIFF parentInput)
                                   throws java.io.IOException,
                                          RIFFFormatException
Creates a new AugmentationDot from the parentInput's input stream. The next object in the input stream must be of this type.

Parameters:
parentInput - the parent RIFF object being used to read the input stream
java.io.IOException
RIFFFormatException

maybeNew

public static AugmentationDot maybeNew(RIFF parentInput)
                                throws java.io.IOException,
                                       RIFFFormatException
Peek into the parentInput's input stream and if the next item is a NIFF augmentation dot, return a new AugmentationDot. Otherwise, return null and leave the input stream unchanged.

Parameters:
parentInput - the parent RIFF object being used to read the input stream
java.io.IOException
RIFFFormatException