|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ritolaaudio.simplewavio.files.RiffChunk
com.ritolaaudio.simplewavio.files.riff.RiffChunk_JUNK
public class RiffChunk_JUNK
Whatcha gonna do with all that JUNK, all that JUNK inside your chunk?
The JUNK chunk is typically non-data i.e. all-zeroes, used for block alignment in some files, like with 2048 blocksize in CDs.
In case it is not empty, its contents can be read. Who knows what fun little goodies could be in there...
Field Summary | |
---|---|
(package private) byte[] |
junkData
|
Fields inherited from class com.ritolaaudio.simplewavio.files.RiffChunk |
---|
anotherWorkChunk4, childMap, workChunk2, workChunk4 |
Constructor Summary | |
---|---|
RiffChunk_JUNK()
|
Method Summary | |
---|---|
int |
_sizeEstimateInBytes()
DO NOT INVOKE OUTSIDE RIFFCHUNK OBJECTS Called internally when pre-calculating the size of a RIFF file. |
void |
_toData(java.nio.ByteBuffer buffer)
DO NOT INVOKE OUTSIDE RIFF CHUNK OBJECTS Called internally when recursively building a chunk hierarchy from RIFF data. |
void |
fromData(java.nio.ByteBuffer fileBuffer)
|
byte[] |
getJunkData()
JUNK data should be non-data but it doesn't have to be. |
void |
setJunkData(byte[] junkData)
JUNK data should be non-data but it doesn't have to be. |
Methods inherited from class com.ritolaaudio.simplewavio.files.RiffChunk |
---|
addChildChunk, childrenToData, compareTo, getChildChunk, getOrderID, parseRiff, ParseRiff, printChildChunks, readUnsignedInt, readUnsignedShort, sizeEstimateInBytes, toData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
byte[] junkData
Constructor Detail |
---|
public RiffChunk_JUNK()
Method Detail |
---|
public void fromData(java.nio.ByteBuffer fileBuffer)
fromData
in class RiffChunk
public void _toData(java.nio.ByteBuffer buffer)
RiffChunk
_toData
in class RiffChunk
public int _sizeEstimateInBytes()
RiffChunk
_sizeEstimateInBytes
in class RiffChunk
public byte[] getJunkData()
public void setJunkData(byte[] junkData)
junkData
- the junkData to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |