File tree Expand file tree Collapse file tree 7 files changed +165
-5
lines changed
Expand file tree Collapse file tree 7 files changed +165
-5
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
33Definition of the object transformer API
4+
5+ :authors: Thomas Calmant
6+ :license: Apache License 2.0
7+ :version: 0.4.0
8+ :status: Alpha
9+
10+ ..
11+
12+ Copyright 2019 Thomas Calmant
13+
14+ Licensed under the Apache License, Version 2.0 (the "License");
15+ you may not use this file except in compliance with the License.
16+ You may obtain a copy of the License at
17+
18+ http://www.apache.org/licenses/LICENSE-2.0
19+
20+ Unless required by applicable law or agreed to in writing, software
21+ distributed under the License is distributed on an "AS IS" BASIS,
22+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+ See the License for the specific language governing permissions and
24+ limitations under the License.
425"""
526
627from typing import Optional
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
12"""
2- Debugging module, port of the jdeserialize project from Java
3- => https://github.com/frohoff/jdeserialize
3+ Rewritten version of the un-marshalling process of javaobj.
4+
5+ The previous process had issues in some cases that
6+
7+ This package is based on the approach of the jdeserialize project (in Java)
8+ See: https://github.com/frohoff/jdeserialize
9+
10+ The object transformer concept of javaobj has been adapted to work with this
11+ approach.
12+
13+ This package should handle more files than before, in read-only mode.
14+ The writing mode should be handled by the "classic" javaobj code.
15+
16+ :authors: Thomas Calmant
17+ :license: Apache License 2.0
18+ :version: 0.4.0
19+ :status: Alpha
20+
21+ ..
22+
23+ Copyright 2019 Thomas Calmant
24+
25+ Licensed under the Apache License, Version 2.0 (the "License");
26+ you may not use this file except in compliance with the License.
27+ You may obtain a copy of the License at
28+
29+ http://www.apache.org/licenses/LICENSE-2.0
30+
31+ Unless required by applicable law or agreed to in writing, software
32+ distributed under the License is distributed on an "AS IS" BASIS,
33+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+ See the License for the specific language governing permissions and
35+ limitations under the License.
436"""
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
3- Definition of the beans used in javaobj
3+ Definition of the beans used to represent the parsed objects
4+
5+ :authors: Thomas Calmant
6+ :license: Apache License 2.0
7+ :version: 0.4.0
8+ :status: Alpha
9+
10+ ..
11+
12+ Copyright 2019 Thomas Calmant
13+
14+ Licensed under the Apache License, Version 2.0 (the "License");
15+ you may not use this file except in compliance with the License.
16+ You may obtain a copy of the License at
17+
18+ http://www.apache.org/licenses/LICENSE-2.0
19+
20+ Unless required by applicable law or agreed to in writing, software
21+ distributed under the License is distributed on an "AS IS" BASIS,
22+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+ See the License for the specific language governing permissions and
24+ limitations under the License.
425"""
526
627from enum import Enum , IntEnum
@@ -217,6 +238,7 @@ def flags(self):
217238 Mimics the javaobj API
218239 """
219240 return self .desc_flags
241+
220242 @property
221243 def fields_names (self ):
222244 """
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
3- Definition of the constants used in javaobj
3+ Definition of the constants used in the deserialization process
4+
5+ :authors: Thomas Calmant
6+ :license: Apache License 2.0
7+ :version: 0.4.0
8+ :status: Alpha
9+
10+ ..
11+
12+ Copyright 2019 Thomas Calmant
13+
14+ Licensed under the Apache License, Version 2.0 (the "License");
15+ you may not use this file except in compliance with the License.
16+ You may obtain a copy of the License at
17+
18+ http://www.apache.org/licenses/LICENSE-2.0
19+
20+ Unless required by applicable law or agreed to in writing, software
21+ distributed under the License is distributed on an "AS IS" BASIS,
22+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+ See the License for the specific language governing permissions and
24+ limitations under the License.
425"""
526
627STREAM_MAGIC = 0xACED
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
3- New core version of python-javaobj, using the same approach as jdeserialize
3+ Second parsing approach for javaobj, using the same approach as jdeserialize
4+ See: https://github.com/frohoff/jdeserialize
5+
6+ :authors: Thomas Calmant
7+ :license: Apache License 2.0
8+ :version: 0.4.0
9+ :status: Alpha
10+
11+ ..
12+
13+ Copyright 2019 Thomas Calmant
14+
15+ Licensed under the Apache License, Version 2.0 (the "License");
16+ you may not use this file except in compliance with the License.
17+ You may obtain a copy of the License at
18+
19+ http://www.apache.org/licenses/LICENSE-2.0
20+
21+ Unless required by applicable law or agreed to in writing, software
22+ distributed under the License is distributed on an "AS IS" BASIS,
23+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+ See the License for the specific language governing permissions and
25+ limitations under the License.
426"""
527
628from enum import Enum
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
33Utility module to handle streams like in Java
4+
5+ :authors: Thomas Calmant
6+ :license: Apache License 2.0
7+ :version: 0.4.0
8+ :status: Alpha
9+
10+ ..
11+
12+ Copyright 2019 Thomas Calmant
13+
14+ Licensed under the Apache License, Version 2.0 (the "License");
15+ you may not use this file except in compliance with the License.
16+ You may obtain a copy of the License at
17+
18+ http://www.apache.org/licenses/LICENSE-2.0
19+
20+ Unless required by applicable law or agreed to in writing, software
21+ distributed under the License is distributed on an "AS IS" BASIS,
22+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+ See the License for the specific language governing permissions and
24+ limitations under the License.
425"""
526
627from typing import Any , IO , List
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22"""
33Defines the default object transformers
4+
5+ :authors: Thomas Calmant
6+ :license: Apache License 2.0
7+ :version: 0.4.0
8+ :status: Alpha
9+
10+ ..
11+
12+ Copyright 2019 Thomas Calmant
13+
14+ Licensed under the Apache License, Version 2.0 (the "License");
15+ you may not use this file except in compliance with the License.
16+ You may obtain a copy of the License at
17+
18+ http://www.apache.org/licenses/LICENSE-2.0
19+
20+ Unless required by applicable law or agreed to in writing, software
21+ distributed under the License is distributed on an "AS IS" BASIS,
22+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+ See the License for the specific language governing permissions and
24+ limitations under the License.
425"""
526
627from typing import List , Optional
You can’t perform that action at this time.
0 commit comments