Interface SessionReader

All Known Implementing Classes:
CHATSessionReader, TalkBankSessionReader, XMLSessionReader_v12, XMLSessionReader_v13

public interface SessionReader
Interface for a session reader. The reader is responsible for reading an InputStream and returning the resulting session. Instances of this class should be obtained using SessionInputFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canRead(File file)
    Check to see if this reader can open the given file.
    Create session from given input stream
  • Method Details

    • canRead

      boolean canRead(File file) throws IOException
      Check to see if this reader can open the given file.
      Parameters:
      file -
      Returns:
      true if this reader can open the given file, false otherwise
      Throws:
      IOException - if an error occurs when attempting to open a file
    • readSession

      Session readSession(InputStream stream) throws IOException
      Create session from given input stream
      Parameters:
      stream -
      Returns:
      session
      Throws:
      IOException - if an error occurs