|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.store.mp4.atomicparsley.MP4AtomicParsleyManager
public class MP4AtomicParsleyManager
A MP4 Manager class that uses atomic parsley "https://bitbucket.org/shield007/atomicparsley" command line application to control the atoms in the file.
Constructor Summary | |
---|---|
MP4AtomicParsleyManager()
|
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)
This checks that the stores system commands can be found before the store is used. |
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 the managers parameters. |
void |
update(java.io.File mp4File,
java.util.List<IAtom> atoms)
Used to add atoms to a MP4 file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MP4AtomicParsleyManager()
Method Detail |
---|
public void init(java.io.File nativeDir) throws MP4Exception
init
in interface IMP4Manager
nativeDir
- The native folder been used or configured. Null if can't be found
MP4Exception
- Thrown if their is a problem locating the commandspublic java.util.List<IAtom> listAtoms(java.io.File mp4File) throws MP4Exception
listAtoms
in interface IMP4Manager
mp4File
- The MP4 file
MP4Exception
- Thrown if their is a problem reading the MP4 filepublic void update(java.io.File mp4File, java.util.List<IAtom> atoms) throws MP4Exception
update
in interface IMP4Manager
mp4File
- The MP4 fileatoms
- The atoms to add to the file
MP4Exception
- Thrown if their is a problem updating the atomspublic IAtom createAtom(MP4AtomKey name, java.lang.String value)
createAtom
in interface IMP4Manager
name
- The name of the atomvalue
- The value of the atom
public IAtom createAtom(MP4AtomKey name, boolean value)
createAtom
in interface IMP4Manager
name
- The name of the atomvalue
- The value of the atom
public IAtom createAtom(MP4AtomKey name, int value)
createAtom
in interface IMP4Manager
name
- The name of the atomvalue
- The value of the atom
public IAtom createAtom(MP4AtomKey name, short number, short total)
createAtom
in interface IMP4Manager
name
- The name of the atomnumber
- The number of items in the ragetotal
- The total number possible
public IAtom createAtom(MP4AtomKey name, MP4ArtworkType type, int size, byte[] data)
createAtom
in interface IMP4Manager
name
- The name of the atomtype
- The artwork typesize
- The size of the artworkdata
- The data in the artwork
public void setParameter(java.lang.String key, java.lang.String value)
Used to set the managers parameters.
This manager has following optional parameters:
setParameter
in interface IMP4Manager
key
- The name of the parametervalue
- The value of the parameterpublic java.io.File getArtworkFile(java.net.URL imageUrl) throws java.io.IOException
getArtworkFile
in interface IMP4Manager
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 |