Class PhpSerializer

java.lang.Object
rs.baselib.php.PhpSerializer

public class PhpSerializer
extends java.lang.Object
Serializes Java objects in a PHP serializer format string.

Implementation based on pherialize by Klaus Reimer: https://github.com/kayahr/pherialize/blob/master

Since:
1.2.6
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    PhpSerializer()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String serialize​(java.lang.Object object)
    Serializes the specified object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • serialize

      public static java.lang.String serialize​(java.lang.Object object)
      Serializes the specified object.
      Parameters:
      object - object to serialize
      Returns:
      The serialized data
      Since:
      1.2.6