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 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
-
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:
getOutputStreamin interfaceGeometryOutput- Returns:
- output stream for writing to the output
-