Class TextStlFacetDefinitionReader
java.lang.Object
org.apache.commons.geometry.io.euclidean.threed.stl.TextStlFacetDefinitionReader
- All Implemented Interfaces:
AutoCloseable, FacetDefinitionReader
FacetDefinitionReader for reading the text (i.e., "ASCII") version of the STL file format.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTextStlFacetDefinitionReader(Reader reader) Construct a new instance for reading text STL content from the given reader. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this instance and release all associated resources.Get the name of the STL solid being read or null if no name was specified.Return the next facet definition from the input source or null if no more facets are available.
-
Constructor Details
-
TextStlFacetDefinitionReader
Construct a new instance for reading text STL content from the given reader.- Parameters:
reader- reader to read characters from
-
-
Method Details
-
getSolidName
Get the name of the STL solid being read or null if no name was specified.- Returns:
- the name of the STL solid being read or null if no name was specified
- Throws:
IllegalStateException- if a data format error occursUncheckedIOException- if an I/O error occurs
-
readFacet
Return the next facet definition from the input source or null if no more facets are available.- Specified by:
readFacetin interfaceFacetDefinitionReader- Returns:
- the next facet definition or null if no more facets are available
-
close
Close this instance and release all associated resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFacetDefinitionReader
-