|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lava.riff.Riff
RIFF file constants.
Details: Riff contains functions and constants that are useful when processing RIFF files.
| Field Summary | |
static int |
RIFF_TAG
RIFF tag. |
| Method Summary | |
static java.lang.String |
decodeTag(int itag)
Decodes tag. |
static int |
makeIntTag(java.lang.String stag)
Encodes chunk tag. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int RIFF_TAG
Details: This member defines the 'RIFF' tag, or the "magic number" found in the first four bytes of a RIFF file.
| Method Detail |
public static final int makeIntTag(java.lang.String stag)
Details: makeIntTag generates an int that represents a four character chunk tag (chunk type identifier). This function is used primarily to form the chunk tag constants that are used in other RIFF-related classes in this package. (In this package, tags are processed as ints, rather than strings, because comparing two ints is more efficient than comparing two strings.) The MSB of the returned int is the first character in the tag string. The tag must be exactly four 8-bit characters. (Pad with spaces if necessary.)
stag - the tag in String formint formdecodeTag(int)public static final java.lang.String decodeTag(int itag)
Details: decodeTag converts a chunk tag (chunk type identifier) from its int form to String form. This is the inverse function of makeIntTag.
itag - the tag in int formString formmakeIntTag(java.lang.String)
|
Sharkysoft home | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||