Class TextBoundaryReadHandler3D
- java.lang.Object
-
- org.apache.commons.geometry.io.euclidean.threed.AbstractBoundaryReadHandler3D
-
- org.apache.commons.geometry.io.euclidean.threed.txt.TextBoundaryReadHandler3D
-
- All Implemented Interfaces:
BoundaryReadHandler<PlaneConvexSubset,BoundarySource3D>
,BoundaryReadHandler3D
- Direct Known Subclasses:
CsvBoundaryReadHandler3D
public class TextBoundaryReadHandler3D extends AbstractBoundaryReadHandler3D
BoundaryReadHandler3D
implementation for the non-standardTXT
.- See Also:
TextFacetDefinitionReader
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charset
defaultCharset
Default charset for reading text input.
-
Constructor Summary
Constructors Constructor Description TextBoundaryReadHandler3D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetDefinitionReader
facetDefinitionReader(GeometryInput in)
Return aFacetDefinitionReader
for reading rawfacets
from the given input stream.java.nio.charset.Charset
getDefaultCharset()
Get the text input default charset, used if the input does not specify a charset.GeometryFormat
getFormat()
Get thedata format
supported by this handler.void
setDefaultCharset(java.nio.charset.Charset defaultCharset)
Set the text input default charset, used if the input does not specify a charset.-
Methods inherited from class org.apache.commons.geometry.io.euclidean.threed.AbstractBoundaryReadHandler3D
boundaries, facets, read, readTriangleMesh
-
-
-
-
Method Detail
-
getDefaultCharset
public java.nio.charset.Charset getDefaultCharset()
Get the text input default charset, used if the input does not specify a charset.- Returns:
- text input default charset
-
setDefaultCharset
public void setDefaultCharset(java.nio.charset.Charset defaultCharset)
Set the text input default charset, used if the input does not specify a charset.- Parameters:
defaultCharset
- text input default charset
-
getFormat
public GeometryFormat getFormat()
Get thedata format
supported by this handler.- Returns:
- data format supported by this handler
-
facetDefinitionReader
public FacetDefinitionReader facetDefinitionReader(GeometryInput in)
Return aFacetDefinitionReader
for reading rawfacets
from the given input stream.- Parameters:
in
- input stream to read from- Returns:
- facet definition reader instance
-
-