org.farng.mp3.id3
Class FrameBodyPOSS

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3FragmentBody
          extended byorg.farng.mp3.id3.AbstractID3v2FrameBody
              extended byorg.farng.mp3.id3.FrameBodyPOSS

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: 1.4 $
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()
          ID string that usually corresponds to the class name, but can be displayed to the user.
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.

Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: AbstractMP3FileItem
ID string that usually corresponds to the class name, but can be displayed to the user. It is not indended to identify each individual instance.

Specified by:
getIdentifier in class AbstractMP3FileItem
Returns:
ID string

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


Copyright (c) 2004 Eric Farng