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 AbstractGeometryIOMetadata
getCharset, getFileNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
-
Method Details
-
getFile
-
getInputStream
Get the input stream for reading from the input.The returned input stream is buffered.
- Specified by:
getInputStreamin interfaceGeometryInput- Returns:
- input stream for reading from the input
-
toString
- Overrides:
toStringin classAbstractGeometryIOMetadata
-