@@ -34,8 +34,14 @@ This project is a fork of *python-javaobj* by Volodymyr Buell, originally from
34
34
35
35
This fork intends to work both on Python 2.7 and Python 3.4+.
36
36
37
- Compatibility warning: New version of the parser
38
- ------------------------------------------------
37
+ Compatibility Warnings
38
+ ======================
39
+
40
+ New implementation of the parser
41
+ --------------------------------
42
+
43
+ :Implementations: ``v1 ``, ``v2 ``
44
+ :Version: `0.4.0`+
39
45
40
46
Since version 0.4.0, two implementations of the parser are available:
41
47
@@ -46,9 +52,18 @@ Since version 0.4.0, two implementations of the parser are available:
46
52
with support of the object transformer (with a new API) and of the ``numpy ``
47
53
arrays loading.
48
54
55
+ You can use the ``v1 `` parser to ensure that the behaviour of your scripts
56
+ doesn't change and to keep the ability to write down files.
57
+
58
+ You can use the ``v2 `` parser for new developments
59
+ *which won't require marshalling * and as a *fallback * if the ``v1 ``
60
+ fails to parse a file.
61
+
62
+ Object transformers V1
63
+ ----------------------
49
64
50
- Compatibility Warning: object transformer
51
- -----------------------------------------
65
+ :Implementations: `` v1 ``
66
+ :Version: `0.2.0`+
52
67
53
68
As of version 0.2.0, the notion of *object transformer * from the original
54
69
project as been replaced by an *object creator *.
@@ -57,9 +72,20 @@ The *object creator* is called before the deserialization.
57
72
This allows to store the reference of the converted object before deserializing
58
73
it, and avoids a mismatch between the referenced object and the transformed one.
59
74
75
+ Object transformers V2
76
+ ----------------------
77
+
78
+ :Implementations: ``v2 ``
79
+ :Version: `0.4.0`+
80
+
81
+ The ``v2 `` implementation provides a new API for the object transformers.
82
+ Please look at the *Usage (V2) * section in this file.
83
+
84
+ Bytes arrays
85
+ ------------
60
86
61
- Compatibility Warning: bytes arrays
62
- -----------------------------------
87
+ :Implementations: `` v1 ``
88
+ :Version: `0.2.3`+
63
89
64
90
As of version 0.2.3, bytes arrays are loaded as a ``bytes `` object instead of
65
91
an array of integers.
@@ -68,12 +94,12 @@ an array of integers.
68
94
Features
69
95
========
70
96
71
- * Java object instance unmarshaling
72
- * Java classes unmarshaling
73
- * Primitive values unmarshaling
97
+ * Java object instance un-marshalling
98
+ * Java classes un-marshalling
99
+ * Primitive values un-marshalling
74
100
* Automatic conversion of Java Collections to python ones
75
101
(``HashMap `` => ``dict ``, ``ArrayList `` => ``list ``, etc.)
76
- * Basic marshalling of simple Java objects
102
+ * Basic marshalling of simple Java objects (`` v1 `` implementation only)
77
103
78
104
Requirements
79
105
============
@@ -86,7 +112,7 @@ Requirements
86
112
Usage (V1 implementation)
87
113
=========================
88
114
89
- Unmarshalling of Java serialised object:
115
+ Un-marshalling of Java serialised object:
90
116
91
117
.. code-block :: python
92
118
0 commit comments