java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.std.OfStream
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
An output file stream. (native type: std::ofstream)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidClose the stream.voidOpen a file for output.inttellp()Return the output position.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
- 
Constructor Details- 
OfStreampublic OfStream()Instantiate a default file stream.
- 
OfStreamOpen a file for output.- Parameters:
- fileName- the name of the file to open (not null)
- streamMode- the desired mode bits or-ed together (see- StreamOutWrapper)
 
 
- 
- 
Method Details- 
closeStreampublic void closeStream()Close the stream. (native function:close())
- 
openOpen a file for output.- Parameters:
- fileName- the name of the file to open (not null)
- streamMode- the desired mode bits or-ed together (see- StreamOutWrapper)
 
- 
tellppublic int tellp()Return the output position.- Returns:
- buffer position relative to the first character, or -1 to indicate a failure
 
 
-