Class StreamGeometryOutput
java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.output.StreamGeometryOutput
- All Implemented Interfaces:
GeometryIOMetadata
,GeometryOutput
GeometryOutput
implementation that wraps an OutputStream
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance that writes to the given output stream with no configured file name or charset.StreamGeometryOutput
(OutputStream out, String fileName) Construct a new instance that writes to the given output stream with the configured file name but no charset.StreamGeometryOutput
(OutputStream out, String fileName, Charset charset) Construct a new instance that writes to the given output stream with the configured file name and charset. -
Method Summary
Modifier and TypeMethodDescriptionGet the output stream for writing to the output.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
-
Field Details
-
out
Output stream.
-
-
Constructor Details
-
StreamGeometryOutput
Construct a new instance that writes to the given output stream with no configured file name or charset.- Parameters:
out
- output stream
-
StreamGeometryOutput
Construct a new instance that writes to the given output stream with the configured file name but no charset.- Parameters:
out
- output streamfileName
- output file name; may be null
-
StreamGeometryOutput
Construct a new instance that writes to the given output stream with the configured file name and charset.- Parameters:
out
- output streamfileName
- output file name; may be nullcharset
- output charset; may be null
-
-
Method Details
-
getOutputStream
Get the output stream for writing to the output.- Specified by:
getOutputStream
in interfaceGeometryOutput
- Returns:
- output stream for writing to the output
-