Package ca.phon.session.io.xml.v13
Class XMLSessionReader_v13
java.lang.Object
ca.phon.session.io.xml.v13.XMLSessionReader_v13
- All Implemented Interfaces:
IPluginExtensionPoint<SessionReader>
,SessionReader
,XMLObjectReader<Session>
@XMLSerial(namespace="https://phon.ca/ns/phonbank",
elementName="session",
bindType=Session.class)
@SessionIO(group="ca.phon",
id="phonbank",
version="1.3",
mimetype="application/xml",
extension="xml",
name="Phon 3.6+ (.xml)")
public class XMLSessionReader_v13
extends Object
implements SessionReader, XMLObjectReader<Session>, IPluginExtensionPoint<SessionReader>
Session XML reader for session files with
version '1.3'
-
Nested Class Summary
-
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 objectsRead from the given xml input stream.readSession
(InputStream stream) Create session from given input stream
-
Constructor Details
-
XMLSessionReader_v13
public XMLSessionReader_v13()
-
-
Method Details
-
read
Description copied from interface:XMLObjectReader
Read from the given xml input stream.- Specified by:
read
in interfaceXMLObjectReader<Session>
- Returns:
- object of given type read from the given eventReader
- Throws:
IOException
- if something goes wrong
-
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
-
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
-
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>
-