Package com.luciad.ogc.ows.model
Class TLcdOWSInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.luciad.ogc.ows.model.TLcdOWSInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An input stream that contains the MIME type of the data in the input stream.
- Since:
- 8.2
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionTLcdOWSInputStream
(String aMimeType, InputStream aInputStream) Creates a new OWS input stream.TLcdOWSInputStream
(String aMimeType, InputStream aInputStream, Object aTransportData) Creates a new OWS input stream. -
Method Summary
Modifier and TypeMethodDescriptionThe MIME type of the data in this input stream or an empty string if the MIME type is not specified.Returns an object representing data associated with the response stream received in the transportation layer (seeILcdOWSTransport
).Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
TLcdOWSInputStream
Creates a new OWS input stream.- Parameters:
aMimeType
- the MIME typeaInputStream
- the input stream containing the data- Throws:
NullPointerException
- if the MIME type or input stream parameters is null
-
TLcdOWSInputStream
Creates a new OWS input stream.- Parameters:
aMimeType
- the MIME typeaInputStream
- the input stream containing the dataaTransportData
- transportation layer data associated with the response- Throws:
NullPointerException
- if the MIME type or input stream parameters is null
-
-
Method Details
-
getMimeType
The MIME type of the data in this input stream or an empty string if the MIME type is not specified.- Returns:
- the MIME type of the data in the input stream
-
getTransportData
Returns an object representing data associated with the response stream received in the transportation layer (seeILcdOWSTransport
). The type of object and the data contained in it depends on theILcdOWSTransport
object used to connect with an OWS service. An example in the case of a HTTP transport connection is a map of response-headers (seeURLConnection.getHeaderFields()
).- Returns:
- an object representing data to be used by the transportation layer to perform this OGC Web Service request.
-