Class StlFacetDefinitionReaders


  • public final class StlFacetDefinitionReaders
    extends java.lang.Object
    Utility class with factory methods for constructing FacetDefinitionReader instances for STL content.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private StlFacetDefinitionReaders()
      Utility class; no instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FacetDefinitionReader create​(java.io.InputStream in, java.nio.charset.Charset charset)
      Construct a FacetDefinitionReader for reading STL content from the given input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StlFacetDefinitionReaders

        private StlFacetDefinitionReaders()
        Utility class; no instantiation.
    • Method Detail

      • create

        public static FacetDefinitionReader create​(java.io.InputStream in,
                                                   java.nio.charset.Charset charset)
        Construct a 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.
        Parameters:
        in - input to read from
        charset - 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 occurs
        java.io.UncheckedIOException - if an I/O error occurs