public class CASTransportable extends org.xml.sax.helpers.DefaultHandler implements Transportable
Modifier and Type | Field and Description |
---|---|
boolean |
ignoreResponse |
boolean |
includeDocText |
UimaContext |
uimaContext |
Constructor and Description |
---|
CASTransportable(CAS cas,
OutOfTypeSystemData outOfTypeSystemData,
UimaContext uimaContext,
boolean includeDocText)
This constructor is used on the client side, where we have a dedicated CAS instance for the
request.
|
CASTransportable(CasPool casPool,
OutOfTypeSystemData outOfTypeSystemData,
UimaContext uimaContext,
boolean includeDocText)
This constructor is used on the service side - a CAS Pool reference is provided.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
cleanup() |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName) |
protected void |
finalize() |
KeyValuePair |
fromStream(java.io.InputStream is)
Read the object from the input stream.
|
CAS |
getCas() |
java.lang.String |
getCommand() |
VinciFrame |
getExtraDataFrame() |
OutOfTypeSystemData |
getOutOfTypeSystemData() |
void |
setCommand(java.lang.String command) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
toStream(java.io.OutputStream os)
Serialize the CAS to the stream in XTalk format.
|
org.xml.sax.SAXException |
wrapAsSAXException(java.io.IOException e)
Create a SAXException that wraps the given IOException.
|
public UimaContext uimaContext
public boolean includeDocText
public boolean ignoreResponse
public CASTransportable(CasPool casPool, OutOfTypeSystemData outOfTypeSystemData, UimaContext uimaContext, boolean includeDocText)
casPool
- outOfTypeSystemData
- uimaContext
- includeDocText
- public CASTransportable(CAS cas, OutOfTypeSystemData outOfTypeSystemData, UimaContext uimaContext, boolean includeDocText)
cas
- outOfTypeSystemData
- uimaContext
- includeDocText
- public VinciFrame getExtraDataFrame()
public OutOfTypeSystemData getOutOfTypeSystemData()
public java.lang.String getCommand()
public void setCommand(java.lang.String command)
public CAS getCas()
public KeyValuePair fromStream(java.io.InputStream is) throws java.io.IOException
Transportable
fromStream
in interface Transportable
is
- The stream to read from.java.io.IOException
public void toStream(java.io.OutputStream os) throws java.io.IOException
toStream
in interface Transportable
os
- The stream to write into.java.io.IOException
public void cleanup()
protected void finalize()
finalize
in class java.lang.Object
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts) 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 uri, java.lang.String name, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
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 org.xml.sax.SAXException wrapAsSAXException(java.io.IOException e)
e
- an IOException to wrapgetCause()
will return e
.Copyright © 2012. All Rights Reserved.