|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
java.lang.String requestedMimeType,
java.lang.String requestedSchema,
java.lang.String requestedEncoding)
Construct a complex output, values will be written to the location and probably not stored. |
|
ComplexOutputImpl(ComplexOutputDefinition outputType,
java.io.OutputStream outputStream,
boolean isRequested,
java.lang.String requestedMimeType,
java.lang.String requestedSchema,
java.lang.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). |
java.io.OutputStream |
getBinaryOutputStream()
Returns the stream to write the output. |
java.io.InputStream |
getInputStream()
Returns the stream to read the value. |
java.lang.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). |
java.lang.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). |
java.lang.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). |
javax.xml.stream.XMLStreamReader |
getStreamReader()
|
java.lang.String |
getWebURL()
|
javax.xml.stream.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,
java.lang.String requestedMimeType,
java.lang.String requestedSchema,
java.lang.String requestedEncoding)
throws java.io.FileNotFoundException,
javax.xml.stream.XMLStreamException
outputType - location - isRequested - requestedMimeType - requestedSchema - requestedEncoding -
java.io.FileNotFoundException
javax.xml.stream.XMLStreamException
public ComplexOutputImpl(ComplexOutputDefinition outputType,
java.io.OutputStream outputStream,
boolean isRequested,
java.lang.String requestedMimeType,
java.lang.String requestedSchema,
java.lang.String requestedEncoding)
outputType - outputStream - isRequested - requestedMimeType - requestedSchema - requestedEncoding - | Method Detail |
|---|
public java.io.OutputStream getBinaryOutputStream()
getBinaryOutputStream in interface ComplexOutput
public javax.xml.stream.XMLStreamWriter getXMLStreamWriter()
throws javax.xml.stream.XMLStreamException
ComplexOutputXMLStreamWriter.writeStartDocument().
getXMLStreamWriter in interface ComplexOutputnull
javax.xml.stream.XMLStreamExceptionpublic java.lang.String getRequestedMimeType()
ComplexOutput
getRequestedMimeType in interface ComplexOutputnull (as each complex output format has a default mime type)public java.lang.String getRequestedSchema()
ComplexOutput
getRequestedSchema in interface ComplexOutputnull (as a complex output format may omit schema
information)public java.lang.String getRequestedEncoding()
ComplexOutput
getRequestedEncoding in interface ComplexOutputnull (as a complex output format may omit encoding
information)public javax.xml.stream.XMLStreamReader getStreamReader()
null if storing was disabled.
public void close()
throws javax.xml.stream.XMLStreamException,
java.io.IOException
javax.xml.stream.XMLStreamException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
public java.lang.String getWebURL()
Null otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||