Package ca.phon.session.io
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 TypeMethodDescriptionboolean
Check 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:
true
if this reader can open the given file,false
otherwise- 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
-