org.niffty
Class RiffTags

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

public class RiffTags
extends java.lang.Object

A RiffTags provides static methods for encoding/decoding a Tags using RIFF.


Method Summary
static Tags newInstance(RIFF riffInput)
          Creates new Tags from riffInput'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 Tags newInstance(RIFF riffInput)
                        throws java.io.IOException,
                               RIFFFormatException
Creates new Tags from riffInput's input stream. Note that riffInput is not a parent since the RIFF file doesn't actually have a separate chunk which is the tags. Rather the tags are a section at the end of an existing chunk. This reads from riffInput until its bytesRemaining is zero. Also, after bytesRemaining is zero, this also calls riffInput.skipRemaining() to skip the possible pad byte. Upon return, the "getter" functions height(), width() etc. return the tag or null if there was no such tag.

java.io.IOException
RIFFFormatException