org.jaudiotagger.audio.ogg
Class OggVorbisTagReader.OggVorbisHeaderSizes

java.lang.Object
  extended by org.jaudiotagger.audio.ogg.OggVorbisTagReader.OggVorbisHeaderSizes
Enclosing class:
OggVorbisTagReader

public static class OggVorbisTagReader.OggVorbisHeaderSizes
extends java.lang.Object

Find the length of the raw packet data and the start position of the ogg page header they start in for the two OggVorbisHeader we need to know about when writing data (sizes included vorbis header)


Field Summary
private  int commentHeaderSize
           
private  long commentHeaderStartPosition
           
private  java.util.List<OggPageHeader.PacketStartAndLength> packetList
           
private  int setupHeaderSize
           
private  long setupHeaderStartPosition
           
 
Constructor Summary
OggVorbisTagReader.OggVorbisHeaderSizes(long commentHeaderStartPosition, long setupHeaderStartPosition, int commentHeaderSize, int setupHeaderSize, java.util.List<OggPageHeader.PacketStartAndLength> packetList)
           
 
Method Summary
 int getCommentHeaderSize()
           
 long getCommentHeaderStartPosition()
           
 int getExtraPacketDataSize()
          Return the size required by all the extra packets on same page as setup header, usually there are no packets immediately after the setup packet.
 java.util.List<OggPageHeader.PacketStartAndLength> getExtraPacketList()
           
 int getSetupHeaderSize()
           
 long getSetupHeaderStartPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commentHeaderStartPosition

private long commentHeaderStartPosition

setupHeaderStartPosition

private long setupHeaderStartPosition

commentHeaderSize

private int commentHeaderSize

setupHeaderSize

private int setupHeaderSize

packetList

private java.util.List<OggPageHeader.PacketStartAndLength> packetList
Constructor Detail

OggVorbisTagReader.OggVorbisHeaderSizes

OggVorbisTagReader.OggVorbisHeaderSizes(long commentHeaderStartPosition,
                                        long setupHeaderStartPosition,
                                        int commentHeaderSize,
                                        int setupHeaderSize,
                                        java.util.List<OggPageHeader.PacketStartAndLength> packetList)
Method Detail

getCommentHeaderSize

public int getCommentHeaderSize()
Returns:
the size of the raw packet data for the vorbis comment header (includes vorbis header)

getSetupHeaderSize

public int getSetupHeaderSize()
Returns:
he size of the raw packet data for the vorbis setup header (includes vorbis header)

getExtraPacketDataSize

public int getExtraPacketDataSize()
Return the size required by all the extra packets on same page as setup header, usually there are no packets immediately after the setup packet.

Returns:
extra data size required for additional packets on same page

getCommentHeaderStartPosition

public long getCommentHeaderStartPosition()
Returns:
the start position in the file of the ogg header which contains the start of the Vorbis Comment

getSetupHeaderStartPosition

public long getSetupHeaderStartPosition()
Returns:
the start position in the file of the ogg header which contains the start of the Setup Header

getExtraPacketList

public java.util.List<OggPageHeader.PacketStartAndLength> getExtraPacketList()