|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.File org.daisy.zedval.engine.ZedFile org.daisy.zedval.engine.ManifestFile org.daisy.zedval.engine.XmlFile org.daisy.zedval.engine.SmilFile
A SmilFile
object represents a DTB synchronization file
Field Summary |
Fields inherited from class org.daisy.zedval.engine.ManifestFile |
MIME_JPEG, MIME_MP3, MIME_NCX, MIME_PACKAGE, MIME_PNG, MIME_RESOURCE, MIME_SMIL, MIME_SVG, MIME_TEXT, MIME_WAV, MIME_AAC |
Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
SmilFile(java.lang.String fullPath,
java.lang.String id,
java.lang.String mimeType)
|
Method Summary | |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Looks for end of to set total duration |
org.daisy.util.xml.SmilClock |
expectedDuration()
Returns actual total duration of this SMIL file |
java.util.HashMap |
getAudioFileRefs()
Returns a HashMap of all audio files referenced by this file |
java.util.Set |
getCustomTestElements()
|
org.daisy.util.xml.SmilClock |
getDuration()
Returns declared total duration of this SMIL file |
java.util.HashSet |
getEscapableElements()
|
java.util.HashMap |
getFileRefs()
Returns a HashMap of all files referenced by this file |
java.util.HashMap |
getImageFileRefs()
Returns a HashMap of all image files referenced by this file |
java.util.HashMap |
getLinkFileRefs()
Returns a HashMap of all files referenced by links in this file |
java.util.HashSet |
getSkippableElements()
|
java.util.HashMap |
getTextFileRefs()
Returns a HashMap of all text files referenced by this file |
org.daisy.util.xml.SmilClock |
getTotalElapsedTime()
Returns declared total elapsed time prior to this SMIL file (dtb:totalElapsedTime metadata item) |
java.lang.String |
getUid()
Returns the declared unique identifier value for this SMIL file (value of "dtb:uid" metadata item) |
boolean |
hasEscapableStructures()
|
boolean |
hasSkippableStructures()
|
boolean |
isValidDuration()
Is the declared total duration correct? |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Grabs all incoming elements and looks for properties to set |
java.lang.String |
toString()
|
Methods inherited from class org.daisy.zedval.engine.ManifestFile |
getId, getMimeType, getPackage, setID, setMimeType, setPackage |
Methods inherited from class org.daisy.zedval.engine.ZedFile |
getName |
Methods inherited from class java.io.File |
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SmilFile(java.lang.String fullPath, java.lang.String id, java.lang.String mimeType)
id
- id from package file manifestfullPath
- File pathmimeType
- File MIME type as given in package manifestMethod Detail |
public boolean hasSkippableStructures()
public boolean hasEscapableStructures()
public org.daisy.util.xml.SmilClock getTotalElapsedTime()
public org.daisy.util.xml.SmilClock getDuration()
public org.daisy.util.xml.SmilClock expectedDuration()
public boolean isValidDuration()
true
if sopublic java.lang.String getUid()
public java.util.HashMap getFileRefs()
public java.util.HashMap getTextFileRefs()
public java.util.HashMap getAudioFileRefs()
public java.util.HashMap getImageFileRefs()
public java.util.HashMap getLinkFileRefs()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class XmlFile
namespaceURI
- The namespace URI of the elementlocalName
- The non-prefixed name of the elementqName
- The qualified name of the elementatts
- List of all element attributespublic java.util.Set getCustomTestElements()
public java.util.HashSet getSkippableElements()
public java.util.HashSet getEscapableElements()
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class XmlFile
namespaceURI
- The namespace URI of the elementlocalName
- The non-prefixed name of the elementqName
- The qualified name of the elementpublic java.lang.String toString()
toString
in class XmlFile
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |