public class CASHandler
extends xml.BasicSAXHandler
readCASSigns(java.lang.String) to obtain CAS animation
data from a given URL.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AVATAR_TAG |
static java.lang.String |
BLANK |
static java.lang.String |
BONE_TAG |
static java.lang.String |
BONECOUNT_TAG |
static java.lang.String |
CAS_TAG |
static java.lang.String |
COUNT_TAG |
static java.lang.String |
DURATION_TAG |
static java.lang.String |
FRAME_TAG |
static java.lang.String |
FRAMES_TAG |
static java.lang.String |
GLOSS_TAG |
static java.lang.String |
INDEX_TAG |
static java.lang.String |
ISCOMPLETE_TAG |
static java.lang.String |
MORPH_TAG |
static java.lang.String |
MORPHCOUNT_TAG |
static java.lang.String |
NAME_TAG |
static java.lang.String |
POSITION_TAG |
static java.lang.String |
QROTATION_TAG |
static java.lang.String |
SIGNCOUNT_TAG |
static java.lang.String |
SIGNSTART_TAG |
static java.lang.String |
TIME_TAG |
static java.lang.String |
VALUE_TAG |
static java.lang.String |
VERSION_TAG |
static java.lang.String |
W_TAG |
static java.lang.String |
X_TAG |
static java.lang.String |
Y_TAG |
static java.lang.String |
Z_TAG |
| Constructor and Description |
|---|
CASHandler()
Constructs a new CAS 2.1 SAX input handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Handler for end-document event.
|
void |
endElement(java.lang.String nsuri,
java.lang.String localnm,
java.lang.String rawnm)
Handler for CAS end-document event.
|
AnimatedSign[] |
extractAnimation()
Returns the sequence of animated signs generated by this handler.
|
static AnimatedSign[] |
readCASSigns(org.xml.sax.InputSource cassrc)
Reads the CAS 2.1 document at the given input source, converting it
to an array of
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs. |
static AnimatedSign[] |
readCASSigns(java.io.InputStream casins)
Reads the CAS 2.1 document on the given input stream, converting it
to an array of
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs. |
static AnimatedSign[] |
readCASSigns(java.lang.String casurl)
Reads the CAS 2.1 document at the given URL, converting it to
an array of
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs. |
void |
startDocument()
Handler for start-document event.
|
void |
startElement(java.lang.String nsuri,
java.lang.String localnm,
java.lang.String rawnm,
org.xml.sax.Attributes attribs)
Handler for CAS start-element event.
|
error, fatalError, resolveEntity, setDocumentLocator, warningpublic static final java.lang.String CAS_TAG
public static final java.lang.String FRAMES_TAG
public static final java.lang.String FRAME_TAG
public static final java.lang.String MORPH_TAG
public static final java.lang.String BONE_TAG
public static final java.lang.String POSITION_TAG
public static final java.lang.String QROTATION_TAG
public static final java.lang.String AVATAR_TAG
public static final java.lang.String COUNT_TAG
public static final java.lang.String DURATION_TAG
public static final java.lang.String NAME_TAG
public static final java.lang.String VALUE_TAG
public static final java.lang.String BONECOUNT_TAG
public static final java.lang.String MORPHCOUNT_TAG
public static final java.lang.String ISCOMPLETE_TAG
public static final java.lang.String SIGNCOUNT_TAG
public static final java.lang.String SIGNSTART_TAG
public static final java.lang.String GLOSS_TAG
public static final java.lang.String VERSION_TAG
public static final java.lang.String TIME_TAG
public static final java.lang.String INDEX_TAG
public static final java.lang.String X_TAG
public static final java.lang.String Y_TAG
public static final java.lang.String Z_TAG
public static final java.lang.String W_TAG
public static final java.lang.String BLANK
public static AnimatedSign[] readCASSigns(java.io.InputStream casins)
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs.public static AnimatedSign[] readCASSigns(java.lang.String casurl)
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs.public static AnimatedSign[] readCASSigns(org.xml.sax.InputSource cassrc)
AnimatedSigns, and returning this
array -- or returning null if a
XMLScanner.ScanException occurs.public AnimatedSign[] extractAnimation()
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String nsuri,
java.lang.String localnm,
java.lang.String rawnm,
org.xml.sax.Attributes attribs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String nsuri,
java.lang.String localnm,
java.lang.String rawnm)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException