org.niffty
Class RiffNIFFInfo

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

public class RiffNIFFInfo
extends java.lang.Object

A RiffNIFFInfo provides static methods for encoding/decoding a NIFFInfo using RIFF.


Method Summary
static NIFFInfo maybeNew(RIFF parentInput)
          Peek into the parentInput's input stream and if the next item is a NIFF info, return a new NIFFInfo.
static NIFFInfo newInstance(RIFF parentInput)
          Creates new NIFFInfo 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 NIFFInfo newInstance(RIFF parentInput)
                            throws java.io.IOException,
                                   RIFFFormatException
Creates new NIFFInfo 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 NIFFInfo maybeNew(RIFF parentInput)
                         throws java.io.IOException,
                                RIFFFormatException
Peek into the parentInput's input stream and if the next item is a NIFF info, return a new NIFFInfo. Otherwise, return null and leave the input stream unchanged.

java.io.IOException
RIFFFormatException