|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
org.daisy.zedval.engine.ZedFile
org.daisy.zedval.engine.ManifestFile
org.daisy.zedval.engine.XmlFile
org.daisy.zedval.engine.PackageFile
A PackageFile
object represents a DTB package 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 | |
PackageFile(java.lang.String fullPath)
|
|
PackageFile(java.lang.String fullPath,
java.lang.String id,
java.lang.String mimeType)
|
Method Summary | |
java.lang.String |
audioFormat()
Returns the list of audio formats for this package |
void |
characters(char[] ch,
int start,
int length)
Grabs all text of current element and sets properties as needed. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
java.util.LinkedHashMap |
getAudioFiles()
Returns the audio files for this package |
java.util.ArrayList |
getCreators()
Returns array of book creator names |
java.util.LinkedHashMap |
getCssFiles()
Returns the CSS files for this package |
java.lang.String |
getDtbMultimediaTypeAsComputed()
Returns the computed DTB multimedia type (computed by checking fileset member types) Will only return the significant trio subset (audioOnly|audioFullText|textNCX) as the others are programatically undeterminable |
java.lang.String |
getDtbMultimediaTypeAsDeclared()
Returns the declared DTB multimedia type (value of dtb:multimediaType metadata item) |
java.util.LinkedHashMap |
getDtdFiles()
Returns the DTD files for this package (DTDs, Ents and Mods) |
java.util.HashMap |
getFileRefs()
|
java.lang.String |
getIdentifier()
Returns the unique identifier for this package |
java.util.LinkedHashMap |
getImageFiles()
Returns the image files for this package |
java.util.LinkedHashMap |
getJpegFiles()
Returns the JPEG image files for this package |
java.util.LinkedHashMap |
getManifest()
Returns ZedFiles named in package manifest |
java.lang.String |
getMetaDtbMultimediaContent()
Returns the declared DTB multimedia content (value of dtb:multimediaContent metadata item) |
java.util.LinkedHashMap |
getMp3Files()
Returns the MP3 audio files for this package |
NcxFile |
getNcx()
Returns the NCX file for this package |
java.util.LinkedHashMap |
getPngFiles()
Returns the PNG image files for this package |
ResourceFile |
getResource()
Returns the resource file for this package |
java.util.LinkedHashMap |
getSmilFiles()
Returns the SMIL files for this package |
java.lang.String |
getSpecVersion()
Returns version of Zed specification this book follows |
java.util.LinkedHashMap |
getSpine()
Returns list of ZedFiles named in package spine |
java.util.LinkedHashMap |
getSvgFiles()
Returns the SVG image files for this package |
java.util.LinkedHashMap |
getTextFiles()
Returns the text files for this package |
java.lang.String |
getTitle()
Returns the book title |
org.daisy.util.xml.SmilClock |
getTotalTime()
Returns the declared total playback time of the book (value of dtb:totalTime metadata item) |
java.util.LinkedHashMap |
getWavFiles()
Returns the WAV audio files for this package |
java.util.LinkedHashMap |
getAacFiles()
Returns the AAC audio files for this package |
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 PackageFile(java.lang.String fullPath)
fullPath
- Full file path (including name)public PackageFile(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 java.lang.String getTitle()
public java.util.ArrayList getCreators()
public java.lang.String getSpecVersion()
public java.util.LinkedHashMap getManifest()
public NcxFile getNcx()
public ResourceFile getResource()
public java.util.LinkedHashMap getTextFiles()
public java.util.LinkedHashMap getAudioFiles()
public java.util.LinkedHashMap getAacFiles()
public java.util.LinkedHashMap getMp3Files()
public java.util.LinkedHashMap getWavFiles()
public java.util.LinkedHashMap getImageFiles()
public java.util.LinkedHashMap getJpegFiles()
public java.util.LinkedHashMap getPngFiles()
public java.util.LinkedHashMap getSvgFiles()
public java.util.LinkedHashMap getSmilFiles()
public java.util.LinkedHashMap getCssFiles()
public java.util.LinkedHashMap getDtdFiles()
public java.util.LinkedHashMap getSpine()
public java.lang.String getIdentifier()
public java.lang.String getDtbMultimediaTypeAsDeclared()
public java.lang.String getDtbMultimediaTypeAsComputed()
public java.lang.String getMetaDtbMultimediaContent()
public org.daisy.util.xml.SmilClock getTotalTime()
public java.lang.String audioFormat()
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 void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class XmlFile
ch
- Array of characters in documentstart
- Starting index of text in this elementlength
- Length of text in this elementpublic 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
public java.lang.String toString()
toString
in class XmlFile
public java.util.HashMap getFileRefs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |