public class CASTransportable extends 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()
Gets the cas.
|
String |
getCommand()
Gets the command.
|
org.apache.vinci.transport.VinciFrame |
getExtraDataFrame()
Gets the extra data frame.
|
org.apache.uima.cas.impl.OutOfTypeSystemData |
getOutOfTypeSystemData()
Gets the out of type system data.
|
void |
setCommand(String command)
Sets the 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 - the cas pooloutOfTypeSystemData - the out of type system datauimaContext - the uima contextincludeDocText - the include doc textpublic CASTransportable(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.impl.OutOfTypeSystemData outOfTypeSystemData,
org.apache.uima.UimaContext uimaContext,
boolean includeDocText)
cas - the casoutOfTypeSystemData - the out of type system datauimaContext - the uima contextincludeDocText - the include doc textpublic org.apache.vinci.transport.VinciFrame getExtraDataFrame()
public org.apache.uima.cas.impl.OutOfTypeSystemData getOutOfTypeSystemData()
public String getCommand()
public void setCommand(String command)
command - the new commandpublic 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.Transportableos - the osIOException - Signals that an I/O exception has occurred.public void cleanup()
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String name, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic SAXException wrapAsSAXException(IOException e)
e - an IOException to wrapgetCause() will return e.Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.