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 anInputStream
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStream
in
Input stream.
-
Constructor Summary
Constructors Constructor Description StreamGeometryInput(java.io.InputStream in)
Construct a new instance that reads from the given input stream with no configured file name or charset.StreamGeometryInput(java.io.InputStream in, java.lang.String fileName)
Construct a new instance that reads from the given input stream with the configured file name but no charset.StreamGeometryInput(java.io.InputStream in, java.lang.String fileName, java.nio.charset.Charset charset)
Construct a new instance that reads from the given input stream with the configured file name and charset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
Get the input stream for reading from the input.-
Methods inherited from class org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
getCharset, getFileName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.commons.geometry.io.core.GeometryIOMetadata
getCharset, getFileName
-
-
-
-
Constructor Detail
-
StreamGeometryInput
public StreamGeometryInput(java.io.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(java.io.InputStream in, java.lang.String fileName)
Construct a new instance that reads from the given input stream with the configured file name but no charset.- Parameters:
in
- input streamfileName
- input file name; may be null
-
StreamGeometryInput
public StreamGeometryInput(java.io.InputStream in, java.lang.String fileName, java.nio.charset.Charset charset)
Construct a new instance that reads from the given input stream with the configured file name and charset.- Parameters:
in
- input streamfileName
- input file name; may be nullcharset
- input charset; may be null
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
Get the input stream for reading from the input.- Specified by:
getInputStream
in interfaceGeometryInput
- Returns:
- input stream for reading from the input
-
-