com.ritolaaudio.simplewavio.files
Class RiffRoot

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

public class RiffRoot
extends RiffChunk


Field Summary
 
Fields inherited from class com.ritolaaudio.simplewavio.files.RiffChunk
anotherWorkChunk4, childMap, workChunk2, workChunk4
 
Constructor Summary
RiffRoot()
           
 
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)
           
static java.util.List<RiffChunk> readRIFF(java.io.File input)
           
 
Methods inherited from class com.ritolaaudio.simplewavio.files.RiffChunk
addChildChunk, childrenSizeEstimateInBytes, 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
 

Constructor Detail

RiffRoot

public RiffRoot()
Method Detail

fromData

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

readRIFF

public static java.util.List<RiffChunk> readRIFF(java.io.File input)
                                          throws java.io.FileNotFoundException,
                                                 java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

_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: