Class SessionInputFactory

java.lang.Object
ca.phon.session.io.SessionInputFactory

public class SessionInputFactory extends Object
Used to create instances of session readers.
  • Constructor Details

    • SessionInputFactory

      public SessionInputFactory()
      Constructor
  • Method Details

    • getSessionExtensions

      public static Set<String> getSessionExtensions()
    • createReader

      public SessionReader createReader(SessionIO sessionIO)
      Get specified reader.
      Parameters:
      sessionIO -
      Returns:
      session reader or null if not found
    • availableReaders

      public List<SessionIO> availableReaders()
      Get the list of available session readers.
      Returns:
      list of readers
    • createReader

      public SessionReader createReader(String id, String version)
      Create a new session reader given the SessionIO version.
      Parameters:
      id -
      version -
      Returns:
      the new SessionReader or null if not found
    • createReaderForFile

      public SessionReader createReaderForFile(File file)
      Create a new session reader for the given file.
      Parameters:
      file -
      Returns:
      session reader or null if not found
      Throws:
      IOException