Skip to content

Commit 90100a1

Browse files
committed
Added access to FD in DataStreamReader
1 parent 8d0e200 commit 90100a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

javaobj/v2/stream.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ def __init__(self, fd):
4343
"""
4444
self.__fd = fd
4545

46+
@property
47+
def file_descriptor(self):
48+
# type: () -> IO[bytes]
49+
"""
50+
The underlying file descriptor
51+
"""
52+
return self.__fd
53+
4654
def read(self, struct_format):
4755
# type: (str) -> List[Any]
4856
"""

0 commit comments

Comments
 (0)