edu.gtts.sautrela.db
Class AcousticDataBase
java.lang.Object
edu.gtts.sautrela.db.AcousticDataBase
public class AcousticDataBase
- extends java.lang.Object
- Author:
- mpenagar
|
Constructor Summary |
AcousticDataBase(java.net.URL source)
Creates a new instance of AcousticDataBase from a XML at a URL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AcousticDataBase
public AcousticDataBase(java.net.URL source)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
- Creates a new instance of AcousticDataBase from a XML at a URL
- Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getSource
public java.net.URL getSource()
getSentences
public java.util.Set<Sentence> getSentences(java.lang.String regex)
- Returns a set view of the Sentences whose name match the Reguler Expression.
- Parameters:
regex - - The Reguler Expression for matching
- Returns:
- a view of the Sentences whose name match the Reguler Expression.
checkWavFiles
public void checkWavFiles()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.net.MalformedURLException,
java.io.UnsupportedEncodingException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.net.MalformedURLException
java.io.UnsupportedEncodingException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException