|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
xml.BasicSAXHandler
casxml.CASHandler
public class CASHandler
SAX handler for CAS 2.1 data, providing the class method
readCASSigns(java.lang.String)
to obtain CAS animation
data from a given URL.
Field Summary | |
---|---|
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 Summary | |
---|---|
CASHandler()
Constructs a new CAS 2.1 SAX input handler. |
Method Summary | |
---|---|
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 AnimatedSign s, 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 AnimatedSign s, 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 AnimatedSign s, 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. |
Methods inherited from class xml.BasicSAXHandler |
---|
error, fatalError, resolveEntity, setDocumentLocator, warning |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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
Constructor Detail |
---|
public CASHandler()
Method Detail |
---|
public static AnimatedSign[] readCASSigns(java.io.InputStream casins)
AnimatedSign
s, and returning this
array -- or returning null
if a
XMLScanner.ScanException
occurs.
public static AnimatedSign[] readCASSigns(java.lang.String casurl)
AnimatedSign
s, and returning this
array -- or returning null
if a
XMLScanner.ScanException
occurs.
public static AnimatedSign[] readCASSigns(org.xml.sax.InputSource cassrc)
AnimatedSign
s, 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.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public 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.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public 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.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |