Skip to content

Commit 79879b5

Browse files
committed
Small review of the README file
1 parent 8e78c7a commit 79879b5

File tree

1 file changed

+37
-11
lines changed

1 file changed

+37
-11
lines changed

README.rst

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ This project is a fork of *python-javaobj* by Volodymyr Buell, originally from
3434

3535
This fork intends to work both on Python 2.7 and Python 3.4+.
3636

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`+
3945

4046
Since version 0.4.0, two implementations of the parser are available:
4147

@@ -46,9 +52,18 @@ Since version 0.4.0, two implementations of the parser are available:
4652
with support of the object transformer (with a new API) and of the ``numpy``
4753
arrays loading.
4854

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+
----------------------
4964

50-
Compatibility Warning: object transformer
51-
-----------------------------------------
65+
:Implementations: ``v1``
66+
:Version: `0.2.0`+
5267

5368
As of version 0.2.0, the notion of *object transformer* from the original
5469
project as been replaced by an *object creator*.
@@ -57,9 +72,20 @@ The *object creator* is called before the deserialization.
5772
This allows to store the reference of the converted object before deserializing
5873
it, and avoids a mismatch between the referenced object and the transformed one.
5974

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+
------------
6086

61-
Compatibility Warning: bytes arrays
62-
-----------------------------------
87+
:Implementations: ``v1``
88+
:Version: `0.2.3`+
6389

6490
As of version 0.2.3, bytes arrays are loaded as a ``bytes`` object instead of
6591
an array of integers.
@@ -68,12 +94,12 @@ an array of integers.
6894
Features
6995
========
7096

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
74100
* Automatic conversion of Java Collections to python ones
75101
(``HashMap`` => ``dict``, ``ArrayList`` => ``list``, etc.)
76-
* Basic marshalling of simple Java objects
102+
* Basic marshalling of simple Java objects (``v1`` implementation only)
77103

78104
Requirements
79105
============
@@ -86,7 +112,7 @@ Requirements
86112
Usage (V1 implementation)
87113
=========================
88114

89-
Unmarshalling of Java serialised object:
115+
Un-marshalling of Java serialised object:
90116

91117
.. code-block:: python
92118

0 commit comments

Comments
 (0)