|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.wps.output.ProcessletOutputImpl org.deegree.services.wps.output.ComplexOutputImpl
public class ComplexOutputImpl
Identifies this ProcessletOutput
to be a complex data structure encoded in XML (e.g., using GML), and
provides a sink for writing it.
Field Summary |
---|
Fields inherited from class org.deegree.services.wps.output.ProcessletOutputImpl |
---|
definition |
Constructor Summary | |
---|---|
ComplexOutputImpl(ComplexOutputDefinition outputType,
OutputStorage location,
boolean isRequested,
String requestedMimeType,
String requestedSchema,
String requestedEncoding)
Construct a complex output, values will be written to the location and probably not stored. |
|
ComplexOutputImpl(ComplexOutputDefinition outputType,
OutputStream outputStream,
boolean isRequested,
String requestedMimeType,
String requestedSchema,
String requestedEncoding)
Construct a complex output, values will be written to the stream and (probably) not stored. |
Method Summary | |
---|---|
void |
close()
Closes the stream writer and writes the end document (if it was initialized). |
OutputStream |
getBinaryOutputStream()
Returns the stream to write the output. |
InputStream |
getInputStream()
Returns the stream to read the value. |
String |
getRequestedEncoding()
Returns the requested encoding for the complex value, it is guaranteed that the encoding is supported for this parameter (according to the process description). |
String |
getRequestedMimeType()
Returns the requested mime type for the complex value, it is guaranteed that the mime type is supported for this parameter (according to the process description). |
String |
getRequestedSchema()
Returns the requested XML format for the complex value (specified by a schema URL), it is guaranteed that the format is supported for this parameter (according to the process description). |
XMLStreamReader |
getStreamReader()
|
String |
getWebURL()
|
XMLStreamWriter |
getXMLStreamWriter()
Returns a stream for for writing XML output. |
Methods inherited from class org.deegree.services.wps.output.ProcessletOutputImpl |
---|
getDefinition, getIdentifier, getSubmittedAbstract, getSubmittedTitle, isRequested, setAbstract, setTitle, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.services.wps.output.ProcessletOutput |
---|
getIdentifier, getSubmittedAbstract, getSubmittedTitle, isRequested, setAbstract, setTitle |
Constructor Detail |
---|
public ComplexOutputImpl(ComplexOutputDefinition outputType, OutputStorage location, boolean isRequested, String requestedMimeType, String requestedSchema, String requestedEncoding) throws FileNotFoundException, XMLStreamException
outputType
- location
- isRequested
- requestedMimeType
- requestedSchema
- requestedEncoding
-
FileNotFoundException
XMLStreamException
public ComplexOutputImpl(ComplexOutputDefinition outputType, OutputStream outputStream, boolean isRequested, String requestedMimeType, String requestedSchema, String requestedEncoding)
outputType
- outputStream
- isRequested
- requestedMimeType
- requestedSchema
- requestedEncoding
- Method Detail |
---|
public OutputStream getBinaryOutputStream()
getBinaryOutputStream
in interface ComplexOutput
public XMLStreamWriter getXMLStreamWriter() throws XMLStreamException
ComplexOutput
XMLStreamWriter.writeStartDocument()
.
getXMLStreamWriter
in interface ComplexOutput
null
XMLStreamException
public String getRequestedMimeType()
ComplexOutput
getRequestedMimeType
in interface ComplexOutput
null
(as each complex output format has a default mime type)public String getRequestedSchema()
ComplexOutput
getRequestedSchema
in interface ComplexOutput
null
(as a complex output format may omit schema
information)public String getRequestedEncoding()
ComplexOutput
getRequestedEncoding
in interface ComplexOutput
null
(as a complex output format may omit encoding
information)public XMLStreamReader getStreamReader()
null
if storing was disabled.public void close() throws XMLStreamException, IOException
XMLStreamException
IOException
public InputStream getInputStream()
public String getWebURL()
Null
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |