public final class StlFacetDefinitionReaders extends Object
FacetDefinitionReader
instances for STL content.Modifier and Type | Method and Description |
---|---|
static FacetDefinitionReader |
create(InputStream in,
Charset charset)
Construct a
FacetDefinitionReader for reading STL content from the
given input. |
public static FacetDefinitionReader create(InputStream in, Charset charset)
FacetDefinitionReader
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.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 charsetIllegalStateException
- if a parsing error occursUncheckedIOException
- if an I/O error occursCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.