|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.niffty.RiffTimeSlice
A RiffTimeSlice provides static methods for encoding/decoding a TimeSlice using RIFF.
Method Summary | |
static void |
addMusicSymbols(RIFF parentInput,
TimeSlice timeSlice)
This reads chunks from parentInput's input stream until the next NIFF time slice or no more bytesRemaining in the input, adding the chunks to the timeSlice's music symbol list. |
static TimeSlice |
maybeNew(RIFF parentInput)
Peek into the parentInput's input stream and if the next item is a NIFF time slice with any type other than MEASURE_START (presumably type EVENT), return a new TimeSlice. |
static MusicSymbol |
maybeNewAnyMusicSymbol(RIFF parentInput)
Peek into the parentInput's input stream and if the next item is one of the recognized NIFF music symbols which subclass MusicSymbol, then return a new object of that subclass. |
static TimeSlice |
newInstance(RIFF parentInput)
Creates new TimeSlice 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 |
public static TimeSlice newInstance(RIFF parentInput) throws java.io.IOException, RIFFFormatException
parentInput
- the parent RIFF object being used to read the input stream
java.io.IOException
RIFFFormatException
addMusicSymbols(org.niffty.RIFF, org.niffty.TimeSlice)
public static TimeSlice maybeNew(RIFF parentInput) throws java.io.IOException, RIFFFormatException
parentInput
- the parent RIFF object being used to read the input stream
java.io.IOException
RIFFFormatException
public static void addMusicSymbols(RIFF parentInput, TimeSlice timeSlice) throws java.io.IOException, RIFFFormatException
parentInput
- the parent RIFF object being used to read the input streamtimeSlice
- the TimeSlice to which MusicSymbol objects are added.
java.io.IOException
RIFFFormatException
MusicSymbol
public static MusicSymbol maybeNewAnyMusicSymbol(RIFF parentInput) throws java.io.IOException, RIFFFormatException
parentInput
- the parent RIFF object being used to read the input stream
java.io.IOException
RIFFFormatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |