Package ca.phon.session.io
Class SessionInputFactory
java.lang.Object
ca.phon.session.io.SessionInputFactory
Used to create instances of session readers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of available session readers.createReader
(SessionIO sessionIO) Get specified reader.createReader
(String id, String version) Create a new session reader given the SessionIO version.createReaderForFile
(File file) Create a new session reader for the given file.
-
Constructor Details
-
SessionInputFactory
public SessionInputFactory()Constructor
-
-
Method Details
-
getSessionExtensions
-
createReader
Get specified reader.- Parameters:
sessionIO
-- Returns:
- session reader or
null
if not found
-
availableReaders
Get the list of available session readers.- Returns:
- list of readers
-
createReader
Create a new session reader given the SessionIO version.- Parameters:
id
-version
-- Returns:
- the new SessionReader or
null
if not found
-
createReaderForFile
Create a new session reader for the given file.- Parameters:
file
-- Returns:
- session reader or
null
if not found - Throws:
IOException
-