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 Summary
ConstructorsConstructorDescriptionInstantiate an empty stream.StringStream
(String string) Instantiate a stream from the specified string of text. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
StringStream
public StringStream()Instantiate an empty stream. -
StringStream
Instantiate a stream from the specified string of text.- Parameters:
string
- the desired initial content (not null)
-
-
Method Details
-
str
Convert the stream to a string of text.- Returns:
- the string value
-