|
|||||||||||
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.TextFile
A TextFile
object represents a DTB textual content 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 | |
TextFile(java.lang.String fullPath,
java.lang.String id,
java.lang.String mimeType)
|
Method Summary | |
java.util.HashMap |
getFileRefs()
Returns a HashMap of all files referenced by this file |
java.lang.String |
getUid()
|
XmlFileElement |
getXmlFileElementBySmilrefValue(java.lang.String smilrefValue)
|
java.util.Collection |
getXmlFileElementsWithSmilrefAttrs()
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
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 |
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 TextFile(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.util.HashMap getFileRefs()
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 processingInstruction(java.lang.String target, java.lang.String data)
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class XmlFile
public java.lang.String getUid()
public XmlFileElement getXmlFileElementBySmilrefValue(java.lang.String smilrefValue)
smilrefValue
- a string that may or may not be the value of an attribute named smilref in this TextFile
public java.util.Collection getXmlFileElementsWithSmilrefAttrs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |