Class StreamGeometryInput

java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.input.StreamGeometryInput
All Implemented Interfaces:
GeometryIOMetadata, GeometryInput

public class StreamGeometryInput extends AbstractGeometryIOMetadata implements GeometryInput
GeometryInput implementation that wraps an InputStream.
  • Field Details

  • Constructor Details

    • StreamGeometryInput

      public StreamGeometryInput(InputStream in)
      Construct a new instance that reads from the given input stream with no configured file name or charset.
      Parameters:
      in - input stream
    • StreamGeometryInput

      public StreamGeometryInput(InputStream in, String fileName)
      Construct a new instance that reads from the given input stream with the configured file name but no charset.
      Parameters:
      in - input stream
      fileName - input file name; may be null
    • StreamGeometryInput

      public StreamGeometryInput(InputStream in, String fileName, Charset charset)
      Construct a new instance that reads from the given input stream with the configured file name and charset.
      Parameters:
      in - input stream
      fileName - input file name; may be null
      charset - input charset; may be null
  • Method Details

    • getInputStream

      public InputStream getInputStream()
      Get the input stream for reading from the input.
      Specified by:
      getInputStream in interface GeometryInput
      Returns:
      input stream for reading from the input