Class Xml2PhonConverter

java.lang.Object
ca.phon.phontalk.Xml2PhonConverter

public class Xml2PhonConverter extends Object
Reads in a talkbank XML file using SAX and JAXB. Converts the file into a PhonBank v1.1 file.
  • Constructor Details

    • Xml2PhonConverter

      public Xml2PhonConverter()
  • Method Details

    • getInputFile

      public File getInputFile()
    • setInputFile

      public void setInputFile(File inputFile)
    • getSettings

      public Xml2PhonSettings getSettings()
    • setSettings

      public void setSettings(Xml2PhonSettings settings)
    • convertStream

      public Session convertStream(InputStream inputStream, PhonTalkListener listener)
      Convert the given steram into a session object.
      Parameters:
      inputStream -
      listener -
      Returns:
      session
    • convertFile

      public void convertFile(File inputFile, File outputFile, PhonTalkListener listener)
      Convert the given talkbank file and save as the given phone file.
      Parameters:
      inputFile -
      outputFile -
      listener -