com.ritolaaudio.simplewavio.files.riff.wave
Class RiffChunk_data

java.lang.Object
  extended by com.ritolaaudio.simplewavio.files.RiffChunk
      extended by com.ritolaaudio.simplewavio.files.riff.wave.RiffChunk_data
All Implemented Interfaces:
java.lang.Comparable<RiffChunk>

public class RiffChunk_data
extends RiffChunk


Field Summary
(package private)  byte[] rawData
           
 
Fields inherited from class com.ritolaaudio.simplewavio.files.RiffChunk
anotherWorkChunk4, childMap, workChunk2, workChunk4
 
Constructor Summary
RiffChunk_data()
           
 
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[] getRawData()
           
 void setRawData(byte[] rawData)
           
 
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

rawData

byte[] rawData
Constructor Detail

RiffChunk_data

public RiffChunk_data()
Method Detail

fromData

public void fromData(java.nio.ByteBuffer fileBuffer)
Specified by:
fromData in class RiffChunk

_toData

public void _toData(java.nio.ByteBuffer buffer)
Description copied from class: RiffChunk
DO NOT INVOKE OUTSIDE RIFF CHUNK OBJECTS
Called internally when recursively building a chunk hierarchy from RIFF data.

Specified by:
_toData in class RiffChunk

_sizeEstimateInBytes

public int _sizeEstimateInBytes()
Description copied from class: RiffChunk
DO NOT INVOKE OUTSIDE RIFFCHUNK OBJECTS
Called internally when pre-calculating the size of a RIFF file. This portion is developer-specified.

Specified by:
_sizeEstimateInBytes in class RiffChunk
Returns:

getRawData

public byte[] getRawData()
Returns:
the rawData

setRawData

public void setRawData(byte[] rawData)
Parameters:
rawData - the rawData to set