Class ObjectStreamIn

java.lang.Object
com.github.stephengold.joltjni.ObjectStreamIn

public final class ObjectStreamIn extends Object
Utility class for reading Jolt Physics objects from files.
  • Method Details

    • sReadObject

      public static boolean sReadObject(String fileName, Ref storeRef)
      Read an object from the specified file.
      Parameters:
      fileName - the path to the file (not null)
      storeRef - where to store the de-serialized object (not null, modified)
      Returns:
      true if successful, otherwise false
    • sReadObject

      public static boolean sReadObject(StringStream stream, PhysicsSceneRef sceneRef)
      Read a scene from the specified stream.
      Parameters:
      stream - the stream to read from (not null)
      sceneRef - where to store the de-serialized scene (not null, modified)
      Returns:
      true if successful, otherwise false
    • sReadObject

      public static boolean sReadObject(StringStream stream, RagdollSettingsRef settingsRef)
      Read ragdoll settings from the specified stream.
      Parameters:
      stream - the stream to read from (not null)
      settingsRef - where to store the de-serialized settings (not null, modified)
      Returns:
      true if successful, otherwise false