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
GeometryInputimplementation that wraps anInputStream.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStreaminInput 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.InputStreamgetInputStream()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:
getInputStreamin interfaceGeometryInput- Returns:
- input stream for reading from the input
-
-