Class FileGeometryInput
java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.input.FileGeometryInput
- All Implemented Interfaces:
GeometryIOMetadata
,GeometryInput
GeometryInput
implementation for reading content from a file.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileGeometryInput
(Path file) Construct a new instance for reading from the given file.FileGeometryInput
(Path file, Charset charset) Construct a new instance for reading from the given file with the specific charset. -
Method Summary
Methods inherited from class org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
getCharset, getFileName
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
-
Field Details
-
file
Input file.
-
-
Constructor Details
-
FileGeometryInput
Construct a new instance for reading from the given file.- Parameters:
file
- input file
-
FileGeometryInput
Construct a new instance for reading from the given file with the specific charset.- Parameters:
file
- input filecharset
- charset to use when reading from the input file
-
-
Method Details
-
getFile
Get the input file.- Returns:
- input file
-
getInputStream
Get the input stream for reading from the input.The returned input stream is buffered.
- Specified by:
getInputStream
in interfaceGeometryInput
- Returns:
- input stream for reading from the input
-
toString
- Overrides:
toString
in classAbstractGeometryIOMetadata
-