|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jsyn.ParseIFF
public class ParseIFF
Parse EA style IFF File IFF is a file format that allows "chunks" of data to be placed in a hierarchical file. It was designed by Jerry Morrison at Electronic Arts for the Amiga computer and is now used extensively by Apple Computer and other companies.
ParseRIFF
,
SynthSampleAIFF
Field Summary | |
---|---|
static int |
FORM_ID
|
static int |
LIST_ID
|
Constructor Summary | |
---|---|
ParseIFF(java.io.InputStream stream)
|
Method Summary | |
---|---|
long |
getFileSize()
Size of file based on outermost chunk size plus 8. |
long |
getOffset()
Since IFF files use chunks with explicit size, it is important to keep track of how many bytes have been read from the file. |
static java.lang.String |
IDToString(int ID)
Convert a 4 character IFF ID to a String |
boolean |
isForm(int ckid)
Does the following chunk ID correspond to a container type like FORM? |
void |
parse(ChunkHandler handler)
Parse the stream and pass the forms and chunks to the ChunkHandler |
int |
read()
|
int |
read(byte[] bar)
|
byte |
readByte()
Read 8 bit signed byte. |
int |
readChunkSize()
Read 32 bit signed int assuming IFF order. |
int |
readIntBig()
Read 32 bit signed integer assuming Big Endian byte order. |
int |
readIntLittle()
Read 32 bit signed integer assuming Little Endian byte order. |
short |
readShortBig()
Read 16 bit signed short assuming Big Endian byte order. |
short |
readShortLittle()
Read 16 bit signed short assuming Little Endian byte order. |
long |
skip(long numBytes)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LIST_ID
public static final int FORM_ID
Constructor Detail |
---|
public ParseIFF(java.io.InputStream stream)
Method Detail |
---|
public long getFileSize()
public long getOffset()
public int read() throws java.io.IOException
java.io.IOException
public int read(byte[] bar) throws java.io.IOException
java.io.IOException
public long skip(long numBytes) throws java.io.IOException
java.io.IOException
public int readIntBig() throws java.io.IOException
java.io.IOException
public short readShortBig() throws java.io.IOException
java.io.IOException
public int readIntLittle() throws java.io.IOException
java.io.IOException
public short readShortLittle() throws java.io.IOException
java.io.IOException
public byte readByte() throws java.io.IOException
java.io.IOException
public int readChunkSize() throws java.io.IOException
java.io.IOException
public static java.lang.String IDToString(int ID)
public void parse(ChunkHandler handler) throws java.io.IOException
java.io.IOException
public boolean isForm(int ckid) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |