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
TransportablefromStream in interface Transportableis - The stream to read from.java.io.IOExceptionpublic void toStream(java.io.OutputStream os)
throws java.io.IOException
toStream in interface Transportableos - The stream to write into.java.io.IOExceptionpublic void cleanup()
protected void finalize()
finalize in class java.lang.Objectpublic 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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic 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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic 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 org.xml.sax.SAXException wrapAsSAXException(java.io.IOException e)
e - an IOException to wrapgetCause() will return e.Copyright © 2013. All Rights Reserved.