org.jaudiotagger.audio.mp4.atom
Class Mp4StcoBox

java.lang.Object
  extended by org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
      extended by org.jaudiotagger.audio.mp4.atom.Mp4StcoBox

public class Mp4StcoBox
extends AbstractMp4Box

StcoBox ( media (stream) header), holds offsets into the Audio data


Field Summary
private  int firstOffSet
           
static int NO_OF_OFFSETS_LENGTH
           
static int NO_OF_OFFSETS_POS
           
private  int noOfOffSets
           
static int OFFSET_LENGTH
           
static int OTHER_FLAG_LENGTH
           
static int OTHER_FLAG_POS
           
static int VERSION_FLAG_LENGTH
           
static int VERSION_FLAG_POS
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4StcoBox(Mp4BoxHeader header, java.nio.ByteBuffer buffer)
          Construct box from data and show contents
Mp4StcoBox(Mp4BoxHeader header, java.nio.ByteBuffer originalDataBuffer, int adjustment)
          Construct box from data and adjust offets accordingly
 
Method Summary
 void adjustOffsets(int adjustment)
           
static void debugShowStcoInfo(java.io.RandomAccessFile raf)
           
 int getFirstOffSet()
          The value of the first offset
 int getNoOfOffSets()
          The number of offsets
 void printAlloffsets()
          Show All offsets, useful for debugging
 void printTotalOffset()
           
 
Methods inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
getData, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_FLAG_POS

public static final int VERSION_FLAG_POS
See Also:
Constant Field Values

OTHER_FLAG_POS

public static final int OTHER_FLAG_POS
See Also:
Constant Field Values

NO_OF_OFFSETS_POS

public static final int NO_OF_OFFSETS_POS
See Also:
Constant Field Values

VERSION_FLAG_LENGTH

public static final int VERSION_FLAG_LENGTH
See Also:
Constant Field Values

OTHER_FLAG_LENGTH

public static final int OTHER_FLAG_LENGTH
See Also:
Constant Field Values

NO_OF_OFFSETS_LENGTH

public static final int NO_OF_OFFSETS_LENGTH
See Also:
Constant Field Values

OFFSET_LENGTH

public static final int OFFSET_LENGTH
See Also:
Constant Field Values

noOfOffSets

private int noOfOffSets

firstOffSet

private int firstOffSet
Constructor Detail

Mp4StcoBox

public Mp4StcoBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer buffer)
Construct box from data and show contents

Parameters:
header - header info
buffer - data of box (doesnt include header data)

Mp4StcoBox

public Mp4StcoBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer originalDataBuffer,
                  int adjustment)
Construct box from data and adjust offets accordingly

Parameters:
header - header info
originalDataBuffer - data of box (doesnt include header data)
adjustment -
Method Detail

printTotalOffset

public void printTotalOffset()

printAlloffsets

public void printAlloffsets()
Show All offsets, useful for debugging


adjustOffsets

public void adjustOffsets(int adjustment)

getNoOfOffSets

public int getNoOfOffSets()
The number of offsets

Returns:

getFirstOffSet

public int getFirstOffSet()
The value of the first offset

Returns:

debugShowStcoInfo

public static void debugShowStcoInfo(java.io.RandomAccessFile raf)
                              throws java.io.IOException,
                                     CannotReadException
Throws:
java.io.IOException
CannotReadException