org.farng.mp3.id3
Class FrameBodyPOSS

java.lang.Object
  extended by org.farng.mp3.AbstractMP3FileItem
      extended by org.farng.mp3.AbstractMP3FragmentBody
          extended by org.farng.mp3.id3.AbstractID3v2FrameBody
              extended by org.farng.mp3.id3.FrameBodyPOSS
All Implemented Interfaces:
MP3MetadataContainer

public class FrameBodyPOSS
extends AbstractID3v2FrameBody

4.21.   Position synchronisation frame

   This frame delivers information to the listener of how far into the
   audio stream he picked up; in effect, it states the time offset from
   the first frame in the stream. The frame layout is:

     <Head for 'Position synchronisation', ID: "POSS">

     Time stamp format         $xx
     Position                  $xx (xx ...)

   Where time stamp format is:

     $01  Absolute time, 32 bit sized, using MPEG frames as unit
     $02  Absolute time, 32 bit sized, using milliseconds as unit

   and position is where in the audio the listener starts to receive,
   i.e. the beginning of the next frame. If this frame is used in the

   beginning of a file the value is always 0. There may only be one
   "POSS" frame in each tag.

Version:
$Revision: 3 $
Author:
Eric Farng

Constructor Summary
FrameBodyPOSS()
          Creates a new FrameBodyPOSS object.
FrameBodyPOSS(byte timeStampFormat, long position)
          Creates a new FrameBodyPOSS object.
FrameBodyPOSS(FrameBodyPOSS body)
          Creates a new FrameBodyPOSS object.
FrameBodyPOSS(java.io.RandomAccessFile file)
          Creates a new FrameBodyPOSS object.
 
Method Summary
 java.lang.String getIdentifier()
           
protected  void setupObjectList()
          Create the order of MP3Object objects that this body expects.
 
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody
equals, readHeader, writeHeader
 
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody
appendToObjectList, getBriefDescription, getDescription, getObject, getObjectListIterator, getSize, has6ByteHeader, isSubsetOf, iterator, read, setObject, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameBodyPOSS

public FrameBodyPOSS()
Creates a new FrameBodyPOSS object.


FrameBodyPOSS

public FrameBodyPOSS(FrameBodyPOSS body)
Creates a new FrameBodyPOSS object.


FrameBodyPOSS

public FrameBodyPOSS(byte timeStampFormat,
                     long position)
Creates a new FrameBodyPOSS object.


FrameBodyPOSS

public FrameBodyPOSS(java.io.RandomAccessFile file)
              throws java.io.IOException,
                     InvalidTagException
Creates a new FrameBodyPOSS object.

Throws:
java.io.IOException
InvalidTagException
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in class AbstractMP3FileItem

setupObjectList

protected void setupObjectList()
Description copied from class: AbstractMP3FragmentBody
Create the order of MP3Object objects that this body expects. This method needs to be overwritten.

Specified by:
setupObjectList in class AbstractMP3FragmentBody