Class FileGeometryOutput
java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.output.FileGeometryOutput
- All Implemented Interfaces:
GeometryIOMetadata
,GeometryOutput
GeometryOutput
implementation for writing content to a file.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileGeometryOutput
(Path file) Construct a new instance with the given file and no charset.FileGeometryOutput
(Path file, Charset charset) Construct a new instance with the given file and 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
File to write to.
-
-
Constructor Details
-
FileGeometryOutput
Construct a new instance with the given file and no charset.- Parameters:
file
- output file
-
FileGeometryOutput
Construct a new instance with the given file and charset.- Parameters:
file
- output filecharset
- file charset
-
-
Method Details
-
getFile
Get the output file.- Returns:
- output file
-
getOutputStream
Get the output stream for writing to the output.The returned output stream is buffered.
- Specified by:
getOutputStream
in interfaceGeometryOutput
- Returns:
- output stream for writing to the output
-
toString
- Overrides:
toString
in classAbstractGeometryIOMetadata
-