|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMP4Manager
This interface should be implemented by classes that manager mp4 files
Method Summary | |
---|---|
IAtom |
createAtom(MP4AtomKey name,
boolean value)
Used to create a atom |
IAtom |
createAtom(MP4AtomKey name,
int value)
Used to create a number atom |
IAtom |
createAtom(MP4AtomKey name,
MP4ArtworkType type,
int size,
byte[] data)
Used to create a artwork atom |
IAtom |
createAtom(MP4AtomKey name,
short number,
short total)
Used to create a range atom |
IAtom |
createAtom(MP4AtomKey name,
java.lang.String value)
Used to create a atom |
java.io.File |
getArtworkFile(java.net.URL imageUrl)
Used to download the artwork from a URL to a file |
void |
init(java.io.File nativeDir)
Used to setup the manager |
java.util.List<IAtom> |
listAtoms(java.io.File mp4File)
Used to get a list of atoms in the MP4 file. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Used to set parameters on the manager |
void |
update(java.io.File mp4File,
java.util.List<IAtom> atoms)
Used to add atoms to a MP4 file. |
Method Detail |
---|
java.util.List<IAtom> listAtoms(java.io.File mp4File) throws MP4Exception
mp4File
- The MP4 file
MP4Exception
- Thrown if their is a problem reading the MP4 filevoid update(java.io.File mp4File, java.util.List<IAtom> atoms) throws MP4Exception
mp4File
- The MP4 fileatoms
- The atoms to add to the file
MP4Exception
- Thrown if their is a problem updating the atomsIAtom createAtom(MP4AtomKey name, java.lang.String value)
name
- The name of the atomvalue
- The value of the atom
IAtom createAtom(MP4AtomKey name, boolean value)
name
- The name of the atomvalue
- The value of the atom
IAtom createAtom(MP4AtomKey name, short number, short total)
name
- The name of the atomnumber
- The number of items in the ragetotal
- The total number possible
IAtom createAtom(MP4AtomKey name, int value)
name
- The name of the atomvalue
- The value of the atom
IAtom createAtom(MP4AtomKey name, MP4ArtworkType type, int size, byte[] data)
name
- The name of the atomtype
- The artwork typesize
- The size of the artworkdata
- The data in the artwork
void init(java.io.File nativeDir) throws MP4Exception
nativeDir
- The native folder been used or configured. Null if can't be found
MP4Exception
- Thrown if their is a problem setup up the managervoid setParameter(java.lang.String key, java.lang.String value)
key
- The key of the parametervalue
- The name of the parameterjava.io.File getArtworkFile(java.net.URL imageUrl) throws java.io.IOException
imageUrl
- The file URL
java.io.IOException
- Thrown if their are any problems downloading the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |