Class StlFacetDefinitionReaders
- java.lang.Object
-
- org.apache.commons.geometry.io.euclidean.threed.stl.StlFacetDefinitionReaders
-
public final class StlFacetDefinitionReaders extends java.lang.ObjectUtility class with factory methods for constructingFacetDefinitionReaderinstances for STL content.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStlFacetDefinitionReaders()Utility class; no instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FacetDefinitionReadercreate(java.io.InputStream in, java.nio.charset.Charset charset)Construct aFacetDefinitionReaderfor reading STL content from the given input.
-
-
-
Method Detail
-
create
public static FacetDefinitionReader create(java.io.InputStream in, java.nio.charset.Charset charset)
Construct aFacetDefinitionReaderfor 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:
java.lang.IllegalStateException- if a parsing error occursjava.io.UncheckedIOException- if an I/O error occurs
-
-