org.stanwood.media.store.mp4.atomicparsley
Class APAtomArtwork

java.lang.Object
  extended by org.stanwood.media.store.mp4.atomicparsley.AbstractAPAtom
      extended by org.stanwood.media.store.mp4.atomicparsley.APAtomArtwork
All Implemented Interfaces:
IAtom

public class APAtomArtwork
extends AbstractAPAtom
implements IAtom

Used to store mp4 artwork atom data


Constructor Summary
APAtomArtwork(MP4AtomKey name, MP4ArtworkType type, int size, byte[] data)
          The constructor
 
Method Summary
 void cleanup()
          Called after processing the atom to clean up any used resources
 java.lang.String toString()
          Print out the contents of the atom
 void writeAtom(java.io.File mp4File, boolean extended, java.util.List<java.lang.Object> args)
          Used to get the arguments need to write a atom to the mp4 file
 
Methods inherited from class org.stanwood.media.store.mp4.atomicparsley.AbstractAPAtom
getDisplayName, getKey, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.stanwood.media.store.mp4.IAtom
getDisplayName, getKey, getName
 

Constructor Detail

APAtomArtwork

public APAtomArtwork(MP4AtomKey name,
                     MP4ArtworkType type,
                     int size,
                     byte[] data)
The constructor

Parameters:
name - The name of the atom
type - The type of the artwork
size - the size of the artwork
data - the artwork data
Method Detail

writeAtom

public void writeAtom(java.io.File mp4File,
                      boolean extended,
                      java.util.List<java.lang.Object> args)
               throws MP4Exception
Used to get the arguments need to write a atom to the mp4 file

Specified by:
writeAtom in class AbstractAPAtom
Parameters:
mp4File - The mp4 file
extended - Is this a newer version of the tool
args - The argument list to add to
Throws:
MP4Exception - Thrown if their are any problems

cleanup

public void cleanup()
             throws MP4Exception
Called after processing the atom to clean up any used resources

Overrides:
cleanup in class AbstractAPAtom
Throws:
MP4Exception - Thrown if their is a problem

toString

public java.lang.String toString()
Print out the contents of the atom

Overrides:
toString in class java.lang.Object
Returns:
Textual value of the atom