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(String uri,
String name,
String qName) |
protected void |
finalize() |
KeyValuePair |
fromStream(InputStream is)
Read the object from the input stream.
|
CAS |
getCas() |
String |
getCommand() |
VinciFrame |
getExtraDataFrame() |
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, warning
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 String getCommand()
public void setCommand(String command)
public CAS getCas()
public KeyValuePair fromStream(InputStream is) throws IOException
Transportable
fromStream
in interface Transportable
is
- The stream to read from.IOException
public void toStream(OutputStream os) throws IOException
toStream
in interface Transportable
os
- The stream to write into.IOException
public void cleanup()
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String name, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public SAXException wrapAsSAXException(IOException e)
e
- an IOException to wrapgetCause()
will return e
.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.