Sautrela

edu.gtts.sautrela.db
Class AcousticDataBase

java.lang.Object
  extended by 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
 
Method Summary
 void checkWavFiles()
           
 java.util.Set<Sentence> getSentences(java.lang.String regex)
          Returns a set view of the Sentences whose name match the Reguler Expression.
 java.net.URL getSource()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

Sautrela