java-api 17.25.0__py2-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- java/__init__.py +0 -0
- java/awt/__init__.py +265 -0
- java/awt/event/__init__.py +184 -0
- java/awt/geom/__init__.py +116 -0
- java/awt/image/__init__.py +14 -0
- java/awt/print/__init__.py +93 -0
- java/beans/__init__.py +38 -0
- java/io/__init__.py +442 -0
- java/lang/__init__.py +868 -0
- java/lang/reflect/__init__.py +9 -0
- java/math/__init__.py +93 -0
- java/net/__init__.py +504 -0
- java/net/http/__init__.py +15 -0
- java/nio/__init__.py +667 -0
- java/nio/channels/__init__.py +352 -0
- java/nio/charset/__init__.py +146 -0
- java/nio/file/__init__.py +728 -0
- java/nio/file/attribute/__init__.py +141 -0
- java/org/__init__.py +0 -0
- java/org/jdesktop/__init__.py +0 -0
- java/org/jdesktop/core/__init__.py +0 -0
- java/org/jdesktop/core/animation/__init__.py +0 -0
- java/org/jdesktop/core/animation/timing/__init__.py +17 -0
- java/security/__init__.py +27 -0
- java/text/__init__.py +543 -0
- java/time/__init__.py +575 -0
- java/time/chrono/__init__.py +319 -0
- java/time/format/__init__.py +72 -0
- java/time/temporal/__init__.py +353 -0
- java/util/__init__.py +1479 -0
- java/util/concurrent/__init__.py +147 -0
- java/util/function/__init__.py +131 -0
- java/util/regex/__init__.py +197 -0
- java/util/stream/__init__.py +128 -0
- java_api-17.25.0.dist-info/LICENSE +21 -0
- java_api-17.25.0.dist-info/METADATA +150 -0
- java_api-17.25.0.dist-info/RECORD +46 -0
- java_api-17.25.0.dist-info/WHEEL +5 -0
- java_api-17.25.0.dist-info/top_level.txt +2 -0
- javax/__init__.py +0 -0
- javax/security/__init__.py +0 -0
- javax/security/auth/__init__.py +14 -0
- javax/swing/__init__.py +483 -0
- javax/swing/event/__init__.py +43 -0
- javax/swing/plaf/__init__.py +28 -0
- javax/swing/text/__init__.py +19 -0
java/io/__init__.py
ADDED
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
"""Provides for system input and output through data streams,
|
|
2
|
+
serialization and the file system.
|
|
3
|
+
|
|
4
|
+
Unless otherwise noted, passing a null argument to a constructor or
|
|
5
|
+
method in any class or interface in this package will cause a
|
|
6
|
+
NullPointerException to be thrown.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import print_function
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"BufferedReader",
|
|
13
|
+
"BufferedWriter",
|
|
14
|
+
"ByteArrayInputStream",
|
|
15
|
+
"ByteArrayOutputStream",
|
|
16
|
+
"Closeable",
|
|
17
|
+
"DataOutputStream",
|
|
18
|
+
"File",
|
|
19
|
+
"FileDescriptor",
|
|
20
|
+
"FileInputStream",
|
|
21
|
+
"FileOutputStream",
|
|
22
|
+
"FilterOutputStream",
|
|
23
|
+
"Flushable",
|
|
24
|
+
"IOException",
|
|
25
|
+
"InputStream",
|
|
26
|
+
"InputStreamReader",
|
|
27
|
+
"OutputStream",
|
|
28
|
+
"PrintStream",
|
|
29
|
+
"PrintWriter",
|
|
30
|
+
"Reader",
|
|
31
|
+
"Writer",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
from typing import Any, Optional, Union
|
|
35
|
+
|
|
36
|
+
from java.lang import (
|
|
37
|
+
Appendable,
|
|
38
|
+
AutoCloseable,
|
|
39
|
+
CharSequence,
|
|
40
|
+
Exception,
|
|
41
|
+
Object,
|
|
42
|
+
Readable,
|
|
43
|
+
Throwable,
|
|
44
|
+
)
|
|
45
|
+
from java.nio.channels import FileChannel
|
|
46
|
+
from java.nio.charset import Charset, CharsetDecoder
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Closeable(AutoCloseable):
|
|
50
|
+
def close(self):
|
|
51
|
+
# type: () -> None
|
|
52
|
+
raise NotImplementedError
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Flushable(object):
|
|
56
|
+
def flush(self):
|
|
57
|
+
# type: () -> None
|
|
58
|
+
raise NotImplementedError
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class File(Object):
|
|
62
|
+
pathSeparator = None # type: Union[str, unicode]
|
|
63
|
+
pathSeparatorChar = None # type: Union[str, unicode]
|
|
64
|
+
separator = None # type: Union[str, unicode]
|
|
65
|
+
separatorChar = None # type: Union[str, unicode]
|
|
66
|
+
|
|
67
|
+
def __init__(self, *args):
|
|
68
|
+
# type: (*Any) -> None
|
|
69
|
+
super(File, self).__init__()
|
|
70
|
+
print(args)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class FileDescriptor(Object):
|
|
74
|
+
def sync(self):
|
|
75
|
+
# type: () -> None
|
|
76
|
+
pass
|
|
77
|
+
|
|
78
|
+
def valid(self):
|
|
79
|
+
# type: () -> bool
|
|
80
|
+
return True
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class OutputStream(Object, Closeable, Flushable):
|
|
84
|
+
def close(self):
|
|
85
|
+
# type: () -> None
|
|
86
|
+
pass
|
|
87
|
+
|
|
88
|
+
def flush(self):
|
|
89
|
+
# type: () -> None
|
|
90
|
+
pass
|
|
91
|
+
|
|
92
|
+
@staticmethod
|
|
93
|
+
def nullOutputStream():
|
|
94
|
+
# type: () -> OutputStream
|
|
95
|
+
pass
|
|
96
|
+
|
|
97
|
+
def write(self, *args):
|
|
98
|
+
# type: (*Any) -> None
|
|
99
|
+
pass
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class ByteArrayOutputStream(OutputStream):
|
|
103
|
+
def __init__(self, size=0):
|
|
104
|
+
# type: (int) -> None
|
|
105
|
+
super(ByteArrayOutputStream, self).__init__()
|
|
106
|
+
print(size)
|
|
107
|
+
|
|
108
|
+
def reset(self):
|
|
109
|
+
# type: () -> None
|
|
110
|
+
pass
|
|
111
|
+
|
|
112
|
+
def size(self):
|
|
113
|
+
# type: () -> int
|
|
114
|
+
pass
|
|
115
|
+
|
|
116
|
+
def toByteArray(self):
|
|
117
|
+
# type: () -> bytearray
|
|
118
|
+
pass
|
|
119
|
+
|
|
120
|
+
def writeTo(self, arg):
|
|
121
|
+
# type: (Union[bytearray, OutputStream]) -> None
|
|
122
|
+
pass
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class FileOutputStream(OutputStream):
|
|
126
|
+
def __init__(self, *args):
|
|
127
|
+
# type: (*Any) -> None
|
|
128
|
+
super(FileOutputStream, self).__init__()
|
|
129
|
+
print(args)
|
|
130
|
+
|
|
131
|
+
def getChannel(self):
|
|
132
|
+
# type: () -> Any
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
def getFD(self):
|
|
136
|
+
# type: () -> FileDescriptor
|
|
137
|
+
pass
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
class FilterOutputStream(OutputStream):
|
|
141
|
+
_out = None # type: OutputStream
|
|
142
|
+
|
|
143
|
+
def __init__(self, out):
|
|
144
|
+
# type: (OutputStream) -> None
|
|
145
|
+
super(FilterOutputStream, self).__init__()
|
|
146
|
+
self._out = out
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class DataOutputStream(FilterOutputStream):
|
|
150
|
+
out = None # type: OutputStream
|
|
151
|
+
|
|
152
|
+
def __init__(self, out):
|
|
153
|
+
# type: (OutputStream) -> None
|
|
154
|
+
self.out = out
|
|
155
|
+
super(DataOutputStream, self).__init__(out)
|
|
156
|
+
|
|
157
|
+
def size(self):
|
|
158
|
+
# type: () -> int
|
|
159
|
+
pass
|
|
160
|
+
|
|
161
|
+
def writeBoolean(self, v):
|
|
162
|
+
# type: (bool) -> None
|
|
163
|
+
pass
|
|
164
|
+
|
|
165
|
+
def writeByte(self, v):
|
|
166
|
+
# type: (int) -> None
|
|
167
|
+
pass
|
|
168
|
+
|
|
169
|
+
def writeBytes(self, s):
|
|
170
|
+
# type: (Union[str, unicode]) -> None
|
|
171
|
+
pass
|
|
172
|
+
|
|
173
|
+
def writeChar(self, v):
|
|
174
|
+
# type: (int) -> None
|
|
175
|
+
pass
|
|
176
|
+
|
|
177
|
+
def writeChars(self, s):
|
|
178
|
+
# type: (Union[str, unicode]) -> None
|
|
179
|
+
pass
|
|
180
|
+
|
|
181
|
+
def writeDouble(self, v):
|
|
182
|
+
# type: (float) -> None
|
|
183
|
+
pass
|
|
184
|
+
|
|
185
|
+
def writeFloat(self, v):
|
|
186
|
+
# type: (float) -> None
|
|
187
|
+
pass
|
|
188
|
+
|
|
189
|
+
def writeInt(self, v):
|
|
190
|
+
# type: (int) -> None
|
|
191
|
+
pass
|
|
192
|
+
|
|
193
|
+
def writeLong(self, v):
|
|
194
|
+
# type: (long) -> None
|
|
195
|
+
pass
|
|
196
|
+
|
|
197
|
+
def writeShort(self, v):
|
|
198
|
+
# type: (int) -> None
|
|
199
|
+
pass
|
|
200
|
+
|
|
201
|
+
def writeUTF(self, s):
|
|
202
|
+
# type: (Union[str, unicode]) -> None
|
|
203
|
+
pass
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class PrintStream(FilterOutputStream):
|
|
207
|
+
_out = OutputStream()
|
|
208
|
+
|
|
209
|
+
def __init__(self, *args):
|
|
210
|
+
# type: (*Any) -> None
|
|
211
|
+
print(args)
|
|
212
|
+
super(PrintStream, self).__init__(self._out)
|
|
213
|
+
|
|
214
|
+
def append(self, *args):
|
|
215
|
+
# type: (*Any) -> PrintStream
|
|
216
|
+
pass
|
|
217
|
+
|
|
218
|
+
def checkError(self):
|
|
219
|
+
# type: () -> bool
|
|
220
|
+
return True
|
|
221
|
+
|
|
222
|
+
def format(self, *args):
|
|
223
|
+
# type: (*Any) -> PrintStream
|
|
224
|
+
pass
|
|
225
|
+
|
|
226
|
+
def print(self, arg):
|
|
227
|
+
# type: (Any) -> None
|
|
228
|
+
pass
|
|
229
|
+
|
|
230
|
+
def printf(self, *args):
|
|
231
|
+
# type: (*Any) -> None
|
|
232
|
+
pass
|
|
233
|
+
|
|
234
|
+
def println(self, arg):
|
|
235
|
+
# type: (Any) -> None
|
|
236
|
+
pass
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
class InputStream(Object, Closeable):
|
|
240
|
+
def available(self):
|
|
241
|
+
# type: () -> int
|
|
242
|
+
pass
|
|
243
|
+
|
|
244
|
+
def close(self):
|
|
245
|
+
# type: () -> None
|
|
246
|
+
pass
|
|
247
|
+
|
|
248
|
+
def mark(self, readlimit):
|
|
249
|
+
# type: (int) -> None
|
|
250
|
+
pass
|
|
251
|
+
|
|
252
|
+
def markSupported(self):
|
|
253
|
+
# type: () -> bool
|
|
254
|
+
return True
|
|
255
|
+
|
|
256
|
+
@staticmethod
|
|
257
|
+
def nullInputStream():
|
|
258
|
+
# type: () -> InputStream
|
|
259
|
+
pass
|
|
260
|
+
|
|
261
|
+
def read(self, *args):
|
|
262
|
+
# type: (*Any) -> int
|
|
263
|
+
pass
|
|
264
|
+
|
|
265
|
+
def readAllBytes(self):
|
|
266
|
+
# type: () -> bytearray
|
|
267
|
+
pass
|
|
268
|
+
|
|
269
|
+
def readNBytes(self, *args):
|
|
270
|
+
# type: (*Any) -> int
|
|
271
|
+
pass
|
|
272
|
+
|
|
273
|
+
def reset(self):
|
|
274
|
+
# type: () -> None
|
|
275
|
+
pass
|
|
276
|
+
|
|
277
|
+
def skip(self, n):
|
|
278
|
+
# type: (long) -> long
|
|
279
|
+
pass
|
|
280
|
+
|
|
281
|
+
def transferTo(self, out):
|
|
282
|
+
# type: (OutputStream) -> long
|
|
283
|
+
pass
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
class ByteArrayInputStream(InputStream):
|
|
287
|
+
def __init__(self, buf, offset=0, length=-1):
|
|
288
|
+
# type: (bytearray, int, int) -> None
|
|
289
|
+
super(ByteArrayInputStream, self).__init__()
|
|
290
|
+
print(buf, offset, length)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class FileInputStream(InputStream):
|
|
294
|
+
def __init__(self, *args):
|
|
295
|
+
# type: (*Any) -> None
|
|
296
|
+
super(FileInputStream, self).__init__()
|
|
297
|
+
print(args)
|
|
298
|
+
|
|
299
|
+
def getChannel(self):
|
|
300
|
+
# type: () -> FileChannel
|
|
301
|
+
pass
|
|
302
|
+
|
|
303
|
+
def getFD(self):
|
|
304
|
+
# type: () -> FileDescriptor
|
|
305
|
+
pass
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
class IOException(Exception):
|
|
309
|
+
def __init__(self, message=None, cause=None):
|
|
310
|
+
# type: (Optional[str], Optional[Throwable]) -> None
|
|
311
|
+
super(IOException, self).__init__(message, cause)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
class Reader(Object, Readable, Closeable):
|
|
315
|
+
def __init__(self, lock=None):
|
|
316
|
+
# type: (Optional[Object]) -> None
|
|
317
|
+
print(lock)
|
|
318
|
+
super(Reader, self).__init__()
|
|
319
|
+
|
|
320
|
+
def close(self):
|
|
321
|
+
# type: () -> None
|
|
322
|
+
pass
|
|
323
|
+
|
|
324
|
+
def mark(self, readAheadLimit):
|
|
325
|
+
# type: (int) -> None
|
|
326
|
+
pass
|
|
327
|
+
|
|
328
|
+
def markSupported(self):
|
|
329
|
+
# type: () -> bool
|
|
330
|
+
return True
|
|
331
|
+
|
|
332
|
+
@staticmethod
|
|
333
|
+
def nullReader():
|
|
334
|
+
# type: () -> Reader
|
|
335
|
+
pass
|
|
336
|
+
|
|
337
|
+
def read(self, *args):
|
|
338
|
+
# type: (*Any) -> int
|
|
339
|
+
pass
|
|
340
|
+
|
|
341
|
+
def ready(self):
|
|
342
|
+
# type: () -> bool
|
|
343
|
+
return True
|
|
344
|
+
|
|
345
|
+
def reset(self):
|
|
346
|
+
# type: () -> None
|
|
347
|
+
pass
|
|
348
|
+
|
|
349
|
+
def skip(self, n):
|
|
350
|
+
# type: (long) -> long
|
|
351
|
+
pass
|
|
352
|
+
|
|
353
|
+
def transferTo(self, out):
|
|
354
|
+
# type: (Writer) -> long
|
|
355
|
+
pass
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
class BufferedReader(Reader):
|
|
359
|
+
def __init__(self, in_, sz=None):
|
|
360
|
+
# type: (Reader, Optional[int]) -> None
|
|
361
|
+
super(BufferedReader, self).__init__()
|
|
362
|
+
print(in_, sz)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class InputStreamReader(Reader):
|
|
366
|
+
def __init__(
|
|
367
|
+
self,
|
|
368
|
+
in_, # type: InputStream
|
|
369
|
+
arg=None, # type: Optional[Union[str, unicode, Charset, CharsetDecoder]]
|
|
370
|
+
):
|
|
371
|
+
# type: (...) -> None
|
|
372
|
+
super(InputStreamReader, self).__init__()
|
|
373
|
+
print(in_, arg)
|
|
374
|
+
|
|
375
|
+
def getEncoding(self):
|
|
376
|
+
# type: () -> Union[str, unicode]
|
|
377
|
+
pass
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
class Writer(Object, Appendable, Closeable, Flushable):
|
|
381
|
+
def append(self, c_csq, start=0, end=-1):
|
|
382
|
+
# type: (Union[CharSequence, str], int, int) -> Writer
|
|
383
|
+
pass
|
|
384
|
+
|
|
385
|
+
def close(self):
|
|
386
|
+
# type: () -> None
|
|
387
|
+
pass
|
|
388
|
+
|
|
389
|
+
def flush(self):
|
|
390
|
+
# type: () -> None
|
|
391
|
+
pass
|
|
392
|
+
|
|
393
|
+
@staticmethod
|
|
394
|
+
def nullWriter():
|
|
395
|
+
# type: () -> Writer
|
|
396
|
+
pass
|
|
397
|
+
|
|
398
|
+
def write(self, *args):
|
|
399
|
+
# type: (*Any) -> None
|
|
400
|
+
pass
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
class BufferedWriter(Writer):
|
|
404
|
+
def __init__(self, out, sz=None):
|
|
405
|
+
# type: (Writer, Optional[int]) -> None
|
|
406
|
+
super(BufferedWriter, self).__init__()
|
|
407
|
+
print(out, sz)
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
class PrintWriter(Writer):
|
|
411
|
+
def __init__(self, *args):
|
|
412
|
+
# type: (*Any) -> None
|
|
413
|
+
super(PrintWriter, self).__init__()
|
|
414
|
+
print(args)
|
|
415
|
+
|
|
416
|
+
def append(self, c_csq, start=0, end=-1):
|
|
417
|
+
# type: (Union[CharSequence, str], int, int) -> PrintWriter
|
|
418
|
+
pass
|
|
419
|
+
|
|
420
|
+
def checkError(self):
|
|
421
|
+
# type: () -> bool
|
|
422
|
+
return True
|
|
423
|
+
|
|
424
|
+
def format(self, *args):
|
|
425
|
+
# type: (*Any) -> PrintWriter
|
|
426
|
+
pass
|
|
427
|
+
|
|
428
|
+
def print(self, arg):
|
|
429
|
+
# type: (Any) -> None
|
|
430
|
+
pass
|
|
431
|
+
|
|
432
|
+
def printf(self, *args):
|
|
433
|
+
# type: (*Any) -> PrintWriter
|
|
434
|
+
pass
|
|
435
|
+
|
|
436
|
+
def println(self, arg):
|
|
437
|
+
# type: (Any) -> None
|
|
438
|
+
pass
|
|
439
|
+
|
|
440
|
+
def write(self, *args):
|
|
441
|
+
# type: (*Any) -> None
|
|
442
|
+
pass
|