Package rs.baselib.php
Class PhpUnserializer
java.lang.Object
rs.baselib.php.PhpUnserializer
Unerializes PHP format string to Java objects.
Implementation based on pherialize by Klaus Reimer: https://github.com/kayahr/pherialize/blob/master
- Since:
- 1.2.6
- Author:
- ralph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
protected static int
getNumberEndPosition
(String data, int pos) static Object
unserialize
(String data) Unserializes string to an object.static Object
unserialize
(String data, Charset charset) Unserializes string to an object.
-
Constructor Details
-
PhpUnserializer
public PhpUnserializer()
-
-
Method Details
-
unserialize
Unserializes string to an object.- Parameters:
data
- the data string- Returns:
- The unserialized object
- Since:
- 1.2.6
-
unserialize
Unserializes string to an object.- Parameters:
data
- the data stringcharset
- the charset to use- Returns:
- The unserialized object
- Since:
- 1.2.6
-
getNumberEndPosition
-
encode
-