Interface SessionReader
- All Known Implementing Classes:
CHATSessionReader,TalkBankSessionReader,XmlSessionReaderV1_2,XmlSessionReaderV2_0,XmlSessionReaderV2_1
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 TypeMethodDescriptionbooleanCheck to see if this reader can open the given file.readSession(InputStream stream) Create session from given input stream
-
Method Details
-
canRead
Check to see if this reader can open the given file.- Parameters:
file-- Returns:
trueif this reader can open the given file,falseotherwise- Throws:
IOException- if an error occurs when attempting to open a file
-
readSession
Create session from given input stream- Parameters:
stream-- Returns:
- session
- Throws:
IOException- if an error occurs
-