Class TLcdOWSInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.luciad.ogc.ows.model.TLcdOWSInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class TLcdOWSInputStream extends FilterInputStream
An input stream that contains the MIME type of the data in the input stream.
Since:
8.2
  • Constructor Details

    • TLcdOWSInputStream

      public TLcdOWSInputStream(String aMimeType, InputStream aInputStream)
      Creates a new OWS input stream.
      Parameters:
      aMimeType - the MIME type
      aInputStream - the input stream containing the data
      Throws:
      NullPointerException - if the MIME type or input stream parameters is null
    • TLcdOWSInputStream

      public TLcdOWSInputStream(String aMimeType, InputStream aInputStream, Object aTransportData)
      Creates a new OWS input stream.
      Parameters:
      aMimeType - the MIME type
      aInputStream - the input stream containing the data
      aTransportData - transportation layer data associated with the response
      Throws:
      NullPointerException - if the MIME type or input stream parameters is null
  • Method Details

    • getMimeType

      public String 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

      public Object getTransportData()
      Returns an object representing data associated with the response stream received in the transportation layer (see ILcdOWSTransport). The type of object and the data contained in it depends on the ILcdOWSTransport object used to connect with an OWS service.

      An example in the case of a HTTP transport connection is a map of response-headers (see URLConnection.getHeaderFields()).

      Returns:
      an object representing data to be used by the transportation layer to perform this OGC Web Service request.