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
GeometryInput implementation that wraps an InputStream.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance that reads from the given input stream with no configured file name or charset.StreamGeometryInput(InputStream in, String fileName) Construct a new instance that reads from the given input stream with the configured file name but no charset.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. -
Method Summary
Modifier and TypeMethodDescriptionGet the input stream for reading from the input.Methods inherited from class AbstractGeometryIOMetadata
getCharset, getFileName, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GeometryIOMetadata
getCharset, getFileName
-
Field Details
-
in
Input stream.
-
-
Constructor Details
-
StreamGeometryInput
Construct a new instance that reads from the given input stream with no configured file name or charset.- Parameters:
in- input stream
-
StreamGeometryInput
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
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 Details
-
getInputStream
Get the input stream for reading from the input.- Specified by:
getInputStreamin interfaceGeometryInput- Returns:
- input stream for reading from the input
-