java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.std.StringStream
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class StringStream extends JoltPhysicsObject
Access a string of text as a stream. (native type: std::stringstream)
  • Constructor Details

    • StringStream

      public StringStream()
      Instantiate an empty stream.
    • StringStream

      public StringStream(String string)
      Instantiate a stream from the specified string of text.
      Parameters:
      string - the desired initial content (not null)
  • Method Details

    • str

      public String str()
      Convert the stream to a string of text.
      Returns:
      the string value