Package com.ardor3d.extension.model.ply
Class PlyImporter.BinaryPlyReader
java.lang.Object
com.ardor3d.extension.model.ply.PlyImporter.BinaryPlyReader
- All Implemented Interfaces:
PlyImporter.PlyReader
,Closeable
,AutoCloseable
- Enclosing class:
PlyImporter
largely inspired of jPly's BinaryPlyInputStream, @see
https://github.com/smurn/jPLY/blob/master/jply/src/main/java/org/smurn/jply/BinaryPlyInputStream.java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
ensureAvailable
(int bytes) Ensures that a certain amount of bytes are in the buffer, ready to be read.double
read
(PlyImporter.Data data)
-
Constructor Details
-
BinaryPlyReader
-
-
Method Details
-
read
- Specified by:
read
in interfacePlyImporter.PlyReader
- Throws:
IOException
-
ensureAvailable
Ensures that a certain amount of bytes are in the buffer, ready to be read.- Parameters:
bytes
- Minimal number of unread bytes required in the buffer.- Throws:
IOException
- if reading sufficient more data into the buffer fails.- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-