java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.std.StringStream
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
Access a string of text as a stream. (native type: std::stringstream)
- 
Constructor SummaryConstructorsConstructorDescriptionInstantiate an empty stream.StringStream(String string) Instantiate a stream from the specified string of text.
- 
Method SummaryMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
- 
Constructor Details- 
StringStreampublic StringStream()Instantiate an empty stream.
- 
StringStreamInstantiate a stream from the specified string of text.- Parameters:
- string- the desired initial content (not null)
 
 
- 
- 
Method Details- 
strConvert the stream to a string of text.- Returns:
- the string value
 
- 
tellgpublic int tellg()Return the input position.- Returns:
- buffer position relative to the first character, or -1 to indicate a failure
 
- 
tellppublic int tellp()Return the output position.- Returns:
- buffer position relative to the first character, or -1 to indicate a failure
 
 
-