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.
Files changed (46) hide show
  1. java/__init__.py +0 -0
  2. java/awt/__init__.py +265 -0
  3. java/awt/event/__init__.py +184 -0
  4. java/awt/geom/__init__.py +116 -0
  5. java/awt/image/__init__.py +14 -0
  6. java/awt/print/__init__.py +93 -0
  7. java/beans/__init__.py +38 -0
  8. java/io/__init__.py +442 -0
  9. java/lang/__init__.py +868 -0
  10. java/lang/reflect/__init__.py +9 -0
  11. java/math/__init__.py +93 -0
  12. java/net/__init__.py +504 -0
  13. java/net/http/__init__.py +15 -0
  14. java/nio/__init__.py +667 -0
  15. java/nio/channels/__init__.py +352 -0
  16. java/nio/charset/__init__.py +146 -0
  17. java/nio/file/__init__.py +728 -0
  18. java/nio/file/attribute/__init__.py +141 -0
  19. java/org/__init__.py +0 -0
  20. java/org/jdesktop/__init__.py +0 -0
  21. java/org/jdesktop/core/__init__.py +0 -0
  22. java/org/jdesktop/core/animation/__init__.py +0 -0
  23. java/org/jdesktop/core/animation/timing/__init__.py +17 -0
  24. java/security/__init__.py +27 -0
  25. java/text/__init__.py +543 -0
  26. java/time/__init__.py +575 -0
  27. java/time/chrono/__init__.py +319 -0
  28. java/time/format/__init__.py +72 -0
  29. java/time/temporal/__init__.py +353 -0
  30. java/util/__init__.py +1479 -0
  31. java/util/concurrent/__init__.py +147 -0
  32. java/util/function/__init__.py +131 -0
  33. java/util/regex/__init__.py +197 -0
  34. java/util/stream/__init__.py +128 -0
  35. java_api-17.25.0.dist-info/LICENSE +21 -0
  36. java_api-17.25.0.dist-info/METADATA +150 -0
  37. java_api-17.25.0.dist-info/RECORD +46 -0
  38. java_api-17.25.0.dist-info/WHEEL +5 -0
  39. java_api-17.25.0.dist-info/top_level.txt +2 -0
  40. javax/__init__.py +0 -0
  41. javax/security/__init__.py +0 -0
  42. javax/security/auth/__init__.py +14 -0
  43. javax/swing/__init__.py +483 -0
  44. javax/swing/event/__init__.py +43 -0
  45. javax/swing/plaf/__init__.py +28 -0
  46. javax/swing/text/__init__.py +19 -0
java/nio/__init__.py ADDED
@@ -0,0 +1,667 @@
1
+ from typing import Any, Optional, Union
2
+
3
+ from java.lang import Appendable, CharSequence, Object
4
+
5
+ __all__ = [
6
+ "Buffer",
7
+ "ByteBuffer",
8
+ "ByteOrder",
9
+ "CharBuffer",
10
+ "DoubleBuffer",
11
+ "FloatBuffer",
12
+ "IntBuffer",
13
+ "LongBuffer",
14
+ "MappedByteBuffer",
15
+ "ShortBuffer",
16
+ ]
17
+
18
+
19
+ class Buffer(Object):
20
+ def array(self):
21
+ # type: () -> Object
22
+ raise NotImplementedError
23
+
24
+ def arrayOffset(self):
25
+ # type: () -> int
26
+ raise NotImplementedError
27
+
28
+ def capacity(self):
29
+ # type: () -> int
30
+ pass
31
+
32
+ def clear(self):
33
+ # type: () -> Buffer
34
+ pass
35
+
36
+ def duplicate(self):
37
+ # type: () -> Buffer
38
+ raise NotImplementedError
39
+
40
+ def flip(self):
41
+ # type: () -> Buffer
42
+ pass
43
+
44
+ def hasArray(self):
45
+ # type: () -> bool
46
+ raise NotImplementedError
47
+
48
+ def hasRemaining(self):
49
+ # type: () -> bool
50
+ return True
51
+
52
+ def isDirect(self):
53
+ # type: () -> bool
54
+ raise NotImplementedError
55
+
56
+ def isReadOnly(self):
57
+ # type: () -> bool
58
+ raise NotImplementedError
59
+
60
+ def limit(self, nrewLimit=None):
61
+ # type: (Optional[int]) -> Union[Buffer, int]
62
+ pass
63
+
64
+ def mark(self):
65
+ # type: () -> Buffer
66
+ pass
67
+
68
+ def position(self, newPosition=None):
69
+ # type: (Optional[int]) -> Union[Buffer, int]
70
+ pass
71
+
72
+ def remaining(self):
73
+ # type: () -> int
74
+ pass
75
+
76
+ def reset(self):
77
+ # type: () -> Buffer
78
+ pass
79
+
80
+ def rewind(self):
81
+ # type: () -> Buffer
82
+ pass
83
+
84
+ def slice(self):
85
+ # type: () -> Buffer
86
+ raise NotImplementedError
87
+
88
+
89
+ class ByteBuffer(Buffer):
90
+ def alignedSlice(self, unitSize):
91
+ # type: (int) -> ByteBuffer
92
+ pass
93
+
94
+ def alignmentOffset(self, index, unitSize):
95
+ # type: (int, int) -> int
96
+ pass
97
+
98
+ @staticmethod
99
+ def allocate(capacity):
100
+ # type: (int) -> ByteBuffer
101
+ pass
102
+
103
+ @staticmethod
104
+ def allocateDirect(capacity):
105
+ # type: (int) -> ByteBuffer
106
+ pass
107
+
108
+ def array(self):
109
+ # type: () -> Object
110
+ pass
111
+
112
+ def arrayOffset(self):
113
+ # type: () -> int
114
+ pass
115
+
116
+ def asCharBuffer(self):
117
+ # type: () -> CharBuffer
118
+ pass
119
+
120
+ def asDoubleBuffer(self):
121
+ # type: () -> DoubleBuffer
122
+ pass
123
+
124
+ def asFloatBuffer(self):
125
+ # type: () -> FloatBuffer
126
+ pass
127
+
128
+ def asIntBuffer(self):
129
+ # type: () -> IntBuffer
130
+ pass
131
+
132
+ def asLongBuffer(self):
133
+ # type: () -> LongBuffer
134
+ pass
135
+
136
+ def asReadOnlyBuffer(self):
137
+ # type: () -> ByteBuffer
138
+ pass
139
+
140
+ def asShortBuffer(self):
141
+ # type: () -> ShortBuffer
142
+ pass
143
+
144
+ def compact(self):
145
+ # type: () -> ByteBuffer
146
+ pass
147
+
148
+ def compareTo(self, that):
149
+ # type: (ByteBuffer) -> int
150
+ pass
151
+
152
+ def duplicate(self):
153
+ # type: () -> Buffer
154
+ pass
155
+
156
+ def get(self, *args):
157
+ # type: (Any) -> ByteBuffer
158
+ pass
159
+
160
+ def getChar(self, index=0):
161
+ # type: (int) -> str
162
+ pass
163
+
164
+ def getDouble(self, index=0):
165
+ # type: (int) -> float
166
+ pass
167
+
168
+ def getFloat(self, index=0):
169
+ # type: (int) -> float
170
+ pass
171
+
172
+ def getInt(self, index=0):
173
+ # type: (int) -> int
174
+ pass
175
+
176
+ def getLong(self, index=0):
177
+ # type: (int) -> long
178
+ pass
179
+
180
+ def getShort(self, index=0):
181
+ # type: (int) -> int
182
+ pass
183
+
184
+ def hasArray(self):
185
+ # type: () -> bool
186
+ return True
187
+
188
+ def isDirect(self):
189
+ # type: () -> bool
190
+ return True
191
+
192
+ def isReadOnly(self):
193
+ # type: () -> bool
194
+ return True
195
+
196
+ def mismatch(self, that):
197
+ # type: (ByteBuffer) -> int
198
+ pass
199
+
200
+ def order(self, bo=None):
201
+ # type: (Optional[ByteOrder]) -> ByteOrder
202
+ pass
203
+
204
+ def put(self, *args):
205
+ # type: (Any) -> ByteBuffer
206
+ pass
207
+
208
+ def putChar(self, *args):
209
+ # type: (Any) -> ByteBuffer
210
+ pass
211
+
212
+ def putDouble(self, *args):
213
+ # type: (Any) -> ByteBuffer
214
+ pass
215
+
216
+ def putFloat(self, *args):
217
+ # type: (Any) -> ByteBuffer
218
+ pass
219
+
220
+ def putInt(self, *args):
221
+ # type: (Any) -> ByteBuffer
222
+ pass
223
+
224
+ def putLong(self, *args):
225
+ # type: (Any) -> ByteBuffer
226
+ pass
227
+
228
+ def putShort(self, *args):
229
+ # type: (Any) -> ByteBuffer
230
+ pass
231
+
232
+ def slice(self):
233
+ # type: () -> ByteBuffer
234
+ pass
235
+
236
+ @staticmethod
237
+ def wrap(*arg):
238
+ # type: (Any) -> ByteBuffer
239
+ pass
240
+
241
+
242
+ class ByteOrder(Object):
243
+ BIG_ENDIAN = None # type: ByteOrder
244
+ LITTLE_ENDIAN = None # type: ByteOrder
245
+
246
+ @staticmethod
247
+ def nativeOrder():
248
+ # type: () -> ByteOrder
249
+ pass
250
+
251
+
252
+ class CharBuffer(Buffer, Appendable, CharSequence):
253
+ @staticmethod
254
+ def allocate(capacity):
255
+ # type: (int) -> CharBuffer
256
+ pass
257
+
258
+ def append(self, c_csq, start=0, end=-1):
259
+ # type: (Union[CharSequence, str], int, int) -> CharBuffer
260
+ pass
261
+
262
+ def array(self):
263
+ # type: () -> Object
264
+ pass
265
+
266
+ def arrayOffset(self):
267
+ # type: () -> int
268
+ pass
269
+
270
+ def charAt(self, index):
271
+ # type: (int) -> str
272
+ pass
273
+
274
+ def compact(self):
275
+ # type: () -> CharBuffer
276
+ pass
277
+
278
+ def compareTo(self, that):
279
+ # type: (CharBuffer) -> int
280
+ pass
281
+
282
+ def duplicate(self):
283
+ # type: () -> CharBuffer
284
+ pass
285
+
286
+ def get(self, *args):
287
+ # type: (Any) -> CharBuffer
288
+ pass
289
+
290
+ def hasArray(self):
291
+ # type: () -> bool
292
+ return True
293
+
294
+ def isDirect(self):
295
+ # type: () -> bool
296
+ return True
297
+
298
+ def isReadOnly(self):
299
+ # type: () -> bool
300
+ return True
301
+
302
+ def length(self):
303
+ # type: () -> int
304
+ pass
305
+
306
+ def mismatch(self, that):
307
+ # type: (CharBuffer) -> int
308
+ pass
309
+
310
+ def order(self):
311
+ # type: () -> ByteOrder
312
+ pass
313
+
314
+ def put(self, *args):
315
+ # type: (Any) -> CharBuffer
316
+ pass
317
+
318
+ def read(self, target):
319
+ # type: (CharBuffer) -> int
320
+ pass
321
+
322
+ def slice(self):
323
+ # type: () -> CharBuffer
324
+ pass
325
+
326
+ def subSequence(self, start, end):
327
+ # type: (int, int) -> CharSequence
328
+ pass
329
+
330
+ @staticmethod
331
+ def wrap(*args):
332
+ # type: (Any) -> CharBuffer
333
+ pass
334
+
335
+
336
+ class DoubleBuffer(Buffer):
337
+ @staticmethod
338
+ def allocate(capacity):
339
+ # type: (int) -> DoubleBuffer
340
+ pass
341
+
342
+ def array(self):
343
+ # type: () -> Object
344
+ pass
345
+
346
+ def arrayOffset(self):
347
+ # type: () -> int
348
+ pass
349
+
350
+ def compact(self):
351
+ # type: () -> DoubleBuffer
352
+ pass
353
+
354
+ def compareTo(self, that):
355
+ # type: (DoubleBuffer) -> int
356
+ pass
357
+
358
+ def duplicate(self):
359
+ # type: () -> DoubleBuffer
360
+ pass
361
+
362
+ def get(self, *args):
363
+ # type: (Any) -> DoubleBuffer
364
+ pass
365
+
366
+ def hasArray(self):
367
+ # type: () -> bool
368
+ return True
369
+
370
+ def isDirect(self):
371
+ # type: () -> bool
372
+ return True
373
+
374
+ def isReadOnly(self):
375
+ # type: () -> bool
376
+ return True
377
+
378
+ def mismatch(self, that):
379
+ # type: (DoubleBuffer) -> int
380
+ pass
381
+
382
+ def order(self):
383
+ # type: () -> ByteOrder
384
+ pass
385
+
386
+ def put(self, *args):
387
+ # type: (Any) -> DoubleBuffer
388
+ pass
389
+
390
+ def slice(self):
391
+ # type: () -> DoubleBuffer
392
+ pass
393
+
394
+ @staticmethod
395
+ def wrap(*args):
396
+ # type: (Any) -> DoubleBuffer
397
+ pass
398
+
399
+
400
+ class FloatBuffer(Buffer):
401
+ @staticmethod
402
+ def allocate(capacity):
403
+ # type: (int) -> FloatBuffer
404
+ pass
405
+
406
+ def array(self):
407
+ # type: () -> Object
408
+ pass
409
+
410
+ def arrayOffset(self):
411
+ # type: () -> int
412
+ pass
413
+
414
+ def compact(self):
415
+ # type: () -> FloatBuffer
416
+ pass
417
+
418
+ def compareTo(self, that):
419
+ # type: (FloatBuffer) -> int
420
+ pass
421
+
422
+ def duplicate(self):
423
+ # type: () -> FloatBuffer
424
+ pass
425
+
426
+ def get(self, *args):
427
+ # type: (Any) -> FloatBuffer
428
+ pass
429
+
430
+ def hasArray(self):
431
+ # type: () -> bool
432
+ return True
433
+
434
+ def isDirect(self):
435
+ # type: () -> bool
436
+ return True
437
+
438
+ def isReadOnly(self):
439
+ # type: () -> bool
440
+ return True
441
+
442
+ def mismatch(self, that):
443
+ # type: (FloatBuffer) -> int
444
+ pass
445
+
446
+ def order(self):
447
+ # type: () -> ByteOrder
448
+ pass
449
+
450
+ def put(self, *args):
451
+ # type: (Any) -> FloatBuffer
452
+ pass
453
+
454
+ def slice(self):
455
+ # type: () -> FloatBuffer
456
+ pass
457
+
458
+ @staticmethod
459
+ def wrap(*args):
460
+ # type: (Any) -> FloatBuffer
461
+ pass
462
+
463
+
464
+ class IntBuffer(Buffer):
465
+ @staticmethod
466
+ def allocate(capacity):
467
+ # type: (int) -> IntBuffer
468
+ pass
469
+
470
+ def array(self):
471
+ # type: () -> Object
472
+ pass
473
+
474
+ def arrayOffset(self):
475
+ # type: () -> int
476
+ pass
477
+
478
+ def compact(self):
479
+ # type: () -> IntBuffer
480
+ pass
481
+
482
+ def compareTo(self, that):
483
+ # type: (IntBuffer) -> int
484
+ pass
485
+
486
+ def duplicate(self):
487
+ # type: () -> IntBuffer
488
+ pass
489
+
490
+ def get(self, *args):
491
+ # type: (Any) -> IntBuffer
492
+ pass
493
+
494
+ def hasArray(self):
495
+ # type: () -> bool
496
+ return True
497
+
498
+ def isDirect(self):
499
+ # type: () -> bool
500
+ return True
501
+
502
+ def isReadOnly(self):
503
+ # type: () -> bool
504
+ return True
505
+
506
+ def mismatch(self, that):
507
+ # type: (IntBuffer) -> int
508
+ pass
509
+
510
+ def order(self):
511
+ # type: () -> ByteOrder
512
+ pass
513
+
514
+ def put(self, *args):
515
+ # type: (Any) -> IntBuffer
516
+ pass
517
+
518
+ def slice(self):
519
+ # type: () -> IntBuffer
520
+ pass
521
+
522
+ @staticmethod
523
+ def wrap(*args):
524
+ # type: (Any) -> IntBuffer
525
+ pass
526
+
527
+
528
+ class LongBuffer(Buffer):
529
+ @staticmethod
530
+ def allocate(capacity):
531
+ # type: (int) -> LongBuffer
532
+ pass
533
+
534
+ def array(self):
535
+ # type: () -> Object
536
+ pass
537
+
538
+ def arrayOffset(self):
539
+ # type: () -> int
540
+ pass
541
+
542
+ def compact(self):
543
+ # type: () -> LongBuffer
544
+ pass
545
+
546
+ def compareTo(self, that):
547
+ # type: (LongBuffer) -> int
548
+ pass
549
+
550
+ def duplicate(self):
551
+ # type: () -> LongBuffer
552
+ pass
553
+
554
+ def get(self, *args):
555
+ # type: (Any) -> LongBuffer
556
+ pass
557
+
558
+ def hasArray(self):
559
+ # type: () -> bool
560
+ return True
561
+
562
+ def isDirect(self):
563
+ # type: () -> bool
564
+ return True
565
+
566
+ def isReadOnly(self):
567
+ # type: () -> bool
568
+ return True
569
+
570
+ def mismatch(self, that):
571
+ # type: (LongBuffer) -> int
572
+ pass
573
+
574
+ def order(self):
575
+ # type: () -> ByteOrder
576
+ pass
577
+
578
+ def put(self, *args):
579
+ # type: (Any) -> LongBuffer
580
+ pass
581
+
582
+ def slice(self):
583
+ # type: () -> LongBuffer
584
+ pass
585
+
586
+ @staticmethod
587
+ def wrap(*args):
588
+ # type: (Any) -> LongBuffer
589
+ pass
590
+
591
+
592
+ class ShortBuffer(Buffer):
593
+ @staticmethod
594
+ def allocate(capacity):
595
+ # type: (int) -> ShortBuffer
596
+ pass
597
+
598
+ def array(self):
599
+ # type: () -> Object
600
+ pass
601
+
602
+ def arrayOffset(self):
603
+ # type: () -> int
604
+ pass
605
+
606
+ def compact(self):
607
+ # type: () -> ShortBuffer
608
+ pass
609
+
610
+ def compareTo(self, that):
611
+ # type: (ShortBuffer) -> int
612
+ pass
613
+
614
+ def duplicate(self):
615
+ # type: () -> ShortBuffer
616
+ pass
617
+
618
+ def get(self, *args):
619
+ # type: (Any) -> ShortBuffer
620
+ pass
621
+
622
+ def hasArray(self):
623
+ # type: () -> bool
624
+ return True
625
+
626
+ def isDirect(self):
627
+ # type: () -> bool
628
+ return True
629
+
630
+ def isReadOnly(self):
631
+ # type: () -> bool
632
+ return True
633
+
634
+ def mismatch(self, that):
635
+ # type: (ShortBuffer) -> int
636
+ pass
637
+
638
+ def order(self):
639
+ # type: () -> ByteOrder
640
+ pass
641
+
642
+ def put(self, *args):
643
+ # type: (Any) -> ShortBuffer
644
+ pass
645
+
646
+ def slice(self):
647
+ # type: () -> ShortBuffer
648
+ pass
649
+
650
+ @staticmethod
651
+ def wrap(*args):
652
+ # type: (Any) -> ShortBuffer
653
+ pass
654
+
655
+
656
+ class MappedByteBuffer(ByteBuffer):
657
+ def force(self):
658
+ # type: () -> MappedByteBuffer
659
+ pass
660
+
661
+ def isLoaded(self):
662
+ # type: () -> bool
663
+ return True
664
+
665
+ def load(self):
666
+ # type: () -> MappedByteBuffer
667
+ pass