Package ca.phon.phontalk.plugin
Class CHATSessionReader
java.lang.Object
ca.phon.phontalk.plugin.CHATSessionReader
- All Implemented Interfaces:
IPluginExtensionPoint<SessionReader>
,SessionReader
@SessionIO(group="org.talkbank",
id="CHAT",
version="0.0.1",
mimetype="application/text",
extension="cha",
name="CHAT (.cha)")
public class CHATSessionReader
extends Object
implements SessionReader, IPluginExtensionPoint<SessionReader>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check to see if this reader can open the given file.Class<?>
Get type of extensionGet factory for extension point objectsreadSession
(InputStream stream) Create session from given input stream
-
Constructor Details
-
CHATSessionReader
public CHATSessionReader()
-
-
Method Details
-
canRead
Description copied from interface:SessionReader
Check to see if this reader can open the given file.- Specified by:
canRead
in interfaceSessionReader
- 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
Description copied from interface:SessionReader
Create session from given input stream- Specified by:
readSession
in interfaceSessionReader
- Returns:
- session
- Throws:
IOException
- if an error occurs
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<SessionReader>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<SessionReader>
-