public class CASTransportable extends org.xml.sax.helpers.DefaultHandler implements org.apache.vinci.transport.Transportable
| Modifier and Type | Field and Description |
|---|---|
boolean |
ignoreResponse |
boolean |
includeDocText |
org.apache.uima.UimaContext |
uimaContext |
| Constructor and Description |
|---|
CASTransportable(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.impl.OutOfTypeSystemData outOfTypeSystemData,
org.apache.uima.UimaContext uimaContext,
boolean includeDocText)
This constructor is used on the client side, where we have a dedicated CAS instance for the
request.
|
CASTransportable(org.apache.uima.util.CasPool casPool,
org.apache.uima.cas.impl.OutOfTypeSystemData outOfTypeSystemData,
org.apache.uima.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(String uri,
String name,
String qName) |
protected void |
finalize() |
org.apache.vinci.transport.KeyValuePair |
fromStream(InputStream is) |
org.apache.uima.cas.CAS |
getCas() |
String |
getCommand() |
org.apache.vinci.transport.VinciFrame |
getExtraDataFrame() |
org.apache.uima.cas.impl.OutOfTypeSystemData |
getOutOfTypeSystemData() |
void |
setCommand(String command) |
void |
startDocument() |
void |
startElement(String uri,
String name,
String qName,
Attributes atts) |
void |
toStream(OutputStream os)
Serialize the CAS to the stream in XTalk format.
|
SAXException |
wrapAsSAXException(IOException e)
Create a SAXException that wraps the given IOException.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic org.apache.uima.UimaContext uimaContext
public boolean includeDocText
public boolean ignoreResponse
public CASTransportable(org.apache.uima.util.CasPool casPool,
org.apache.uima.cas.impl.OutOfTypeSystemData outOfTypeSystemData,
org.apache.uima.UimaContext uimaContext,
boolean includeDocText)
casPool - outOfTypeSystemData - uimaContext - includeDocText - public CASTransportable(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.impl.OutOfTypeSystemData outOfTypeSystemData,
org.apache.uima.UimaContext uimaContext,
boolean includeDocText)
cas - outOfTypeSystemData - uimaContext - includeDocText - public org.apache.vinci.transport.VinciFrame getExtraDataFrame()
public org.apache.uima.cas.impl.OutOfTypeSystemData getOutOfTypeSystemData()
public String getCommand()
public void setCommand(String command)
public org.apache.uima.cas.CAS getCas()
public org.apache.vinci.transport.KeyValuePair fromStream(InputStream is) throws IOException
fromStream in interface org.apache.vinci.transport.TransportableIOExceptionpublic void toStream(OutputStream os) throws IOException
toStream in interface org.apache.vinci.transport.TransportableIOExceptionpublic void cleanup()
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String name, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic SAXException wrapAsSAXException(IOException e)
e - an IOException to wrapgetCause() will return e.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.