public abstract class AbstractTextBoundaryWriteHandler3D extends AbstractBoundaryWriteHandler3D
TextFacetDefinitionWriter
.TextFacetDefinitionWriter
Constructor and Description |
---|
AbstractTextBoundaryWriteHandler3D() |
Modifier and Type | Method and Description |
---|---|
Charset |
getDefaultCharset()
Get the text output default charset, used if the output does not
specify a charset.
|
DoubleFunction<String> |
getDoubleFormat()
Get the double format function used to convert double values
to strings.
|
protected TextFacetDefinitionWriter |
getFacetDefinitionWriter(GeometryOutput out)
Get a configured
TextFacetDefinitionWriter for writing output. |
String |
getLineSeparator()
Get the line separator.
|
void |
setDefaultCharset(Charset defaultCharset)
Set the text output default charset, used if the output does not
specify a charset.
|
void |
setDoubleFormat(DoubleFunction<String> doubleFormat)
Set the double format function used to convert double values
to strings.
|
void |
setLineSeparator(String lineSeparator)
Set the line separator.
|
void |
write(Stream<? extends PlaneConvexSubset> boundaries,
GeometryOutput out)
Write all boundaries in the stream to the given output using the data format supported by this
instance.
|
void |
writeFacets(Stream<? extends FacetDefinition> facets,
GeometryOutput out)
Write all
facets in the stream to the output using the data format
supported by this instance. |
write, writeFacets
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat
public AbstractTextBoundaryWriteHandler3D()
public Charset getDefaultCharset()
public void setDefaultCharset(Charset defaultCharset)
defaultCharset
- text output default charsetpublic String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator
- the line separator to usepublic DoubleFunction<String> getDoubleFormat()
public void setDoubleFormat(DoubleFunction<String> doubleFormat)
doubleFormat
- double format functionpublic void write(Stream<? extends PlaneConvexSubset> boundaries, GeometryOutput out)
boundaries
- stream containing boundaries to writeout
- output to write topublic void writeFacets(Stream<? extends FacetDefinition> facets, GeometryOutput out)
facets
in the stream to the output using the data format
supported by this instance. The stream passed as an argument is not closed, meaning
that callers are responsible for closing the stream if necessary (for example, if the stream
fetches data from the file system).facets
- stream containing facets to writeout
- output to write toprotected TextFacetDefinitionWriter getFacetDefinitionWriter(GeometryOutput out)
TextFacetDefinitionWriter
for writing output.out
- output stream to write toUncheckedIOException
- if an I/O error occursCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.