Class StlFacetDefinitionReaders
java.lang.Object
org.apache.commons.geometry.io.euclidean.threed.stl.StlFacetDefinitionReaders
Utility class with factory methods for constructing
FacetDefinitionReader
instances for STL content.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Utility class; no instantiation. -
Method Summary
Modifier and TypeMethodDescriptionstatic FacetDefinitionReader
create
(InputStream in, Charset charset) Construct aFacetDefinitionReader
for reading STL content from the given input.
-
Constructor Details
-
StlFacetDefinitionReaders
private StlFacetDefinitionReaders()Utility class; no instantiation.
-
-
Method Details
-
create
Construct aFacetDefinitionReader
for reading STL content from the given input. The format of the input is checked to determine if it is a binary or text file and an appropriate reader is returned.- Parameters:
in
- input to read fromcharset
- charset to use when checking the input for text content; if null, the input is assumed to use the UTF-8 charset- Returns:
- facet definition reader
- Throws:
IllegalStateException
- if a parsing error occursUncheckedIOException
- if an I/O error occurs
-