org.daisy.zedval.engine
Class Mp3File

java.lang.Object
  extended byjava.io.File
      extended byorg.daisy.zedval.engine.ZedFile
          extended byorg.daisy.zedval.engine.ManifestFile
              extended byorg.daisy.zedval.engine.AudioFile
                  extended byorg.daisy.zedval.engine.Mp3File
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Mp3File
extends AudioFile

An Mp3File object represents a single DTB MPEG-1/2 Layer III (MP3) audio file

Author:
James Pritchett, Daniel Carlsson, Edmar Schut, Markus Gylling
See Also:
Serialized Form

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
Mp3File(java.lang.String fullPath, java.lang.String id, java.lang.String mimeType)
           
 
Method Summary
 void initialize()
          Does all basic integrity tests and sets properties
 boolean isVBR()
           
 
Methods inherited from class org.daisy.zedval.engine.AudioFile
doesMatchFormat, getDuration
 
Methods inherited from class org.daisy.zedval.engine.ManifestFile
getId, getMimeType, getPackage, setID, setMimeType, setPackage, toString
 
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

Mp3File

public Mp3File(java.lang.String fullPath,
               java.lang.String id,
               java.lang.String mimeType)
Parameters:
id - id from package file manifest
fullPath - File path
mimeType - File MIME type as given in package manifest
Method Detail

initialize

public void initialize()
                throws ZedFileInitializationException
Does all basic integrity tests and sets properties

Overrides:
initialize in class AudioFile
Throws:
ZedFileInitializationException

isVBR

public boolean isVBR()