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
@@ -0,0 +1,728 @@
1
+ __all__ = [
2
+ "AccessDeniedException",
3
+ "AtomicMoveNotSupportedException",
4
+ "ClosedDirectoryStreamException",
5
+ "ClosedFileSystemException",
6
+ "CopyOption",
7
+ "DirectoryIteratorException",
8
+ "DirectoryNotEmptyException",
9
+ "DirectoryStream",
10
+ "FileAlreadyExistsException",
11
+ "FileStore",
12
+ "FileSystemAlreadyExistsException",
13
+ "FileSystemException",
14
+ "FileSystemLoopException",
15
+ "FileSystemNotFoundException",
16
+ "FileVisitOption",
17
+ "Files",
18
+ "InvalidPathException",
19
+ "LinkOption",
20
+ "NoSuchFileException",
21
+ "NotDirectoryException",
22
+ "NotLinkException",
23
+ "OpenOption",
24
+ "Path",
25
+ "Paths",
26
+ "ReadOnlyFileSystemException",
27
+ "StandardCopyOption",
28
+ "WatchEvent",
29
+ "WatchKey",
30
+ "Watchable",
31
+ ]
32
+
33
+ from typing import Any, Iterator, List, Optional, Set, Union
34
+
35
+ from java.io import (
36
+ BufferedReader,
37
+ BufferedWriter,
38
+ InputStream,
39
+ IOException,
40
+ OutputStream,
41
+ )
42
+ from java.lang import (
43
+ AutoCloseable,
44
+ CharSequence,
45
+ Class,
46
+ Enum,
47
+ IllegalArgumentException,
48
+ IllegalStateException,
49
+ Object,
50
+ RuntimeException,
51
+ Throwable,
52
+ UnsupportedOperationException,
53
+ )
54
+ from java.nio.channels import SeekableByteChannel
55
+ from java.nio.charset import Charset
56
+ from java.nio.file.attribute import (
57
+ BasicFileAttributes,
58
+ FileAttribute,
59
+ FileAttributeView,
60
+ FileStoreAttributeView,
61
+ FileTime,
62
+ PosixFilePermission,
63
+ UserPrincipal,
64
+ )
65
+ from java.util import ConcurrentModificationException
66
+ from java.util.function import BiPredicate
67
+ from java.util.stream import Stream
68
+
69
+
70
+ class CopyOption(object):
71
+ pass
72
+
73
+
74
+ class DirectoryStream(AutoCloseable):
75
+ def close(self):
76
+ # type: () -> None
77
+ pass
78
+
79
+
80
+ class OpenOption(object):
81
+ pass
82
+
83
+
84
+ class Watchable(object):
85
+ def register(self, *args):
86
+ # type: (Any) -> WatchKey
87
+ raise NotImplementedError
88
+
89
+
90
+ class FileStore(Object):
91
+ def getAttribute(self, attribute):
92
+ # type: (Union[str, unicode]) -> Object
93
+ raise NotImplementedError
94
+
95
+ def getBlockSize(self):
96
+ # type: () -> long
97
+ pass
98
+
99
+ def getFileStoreAttributeView(self, type):
100
+ # type: (Class) -> FileStoreAttributeView
101
+ raise NotImplementedError
102
+
103
+ def getTotalSpace(self):
104
+ # type: () -> long
105
+ raise NotImplementedError
106
+
107
+ def getUnallocatedSpace(self):
108
+ # type: () -> long
109
+ raise NotImplementedError
110
+
111
+ def getUsableSpace(self):
112
+ # type: () -> long
113
+ raise NotImplementedError
114
+
115
+ def isReadOnly(self):
116
+ # type: () -> bool
117
+ raise NotImplementedError
118
+
119
+ def name(self):
120
+ # type: () -> Union[str, unicode]
121
+ raise NotImplementedError
122
+
123
+ def supportsFileAttributeView(self, type):
124
+ # type: (Class) -> bool
125
+ raise NotImplementedError
126
+
127
+ def type(self):
128
+ # type: () -> Union[str, unicode]
129
+ raise NotImplementedError
130
+
131
+
132
+ class ClosedDirectoryStreamException(IllegalStateException):
133
+ def __init__(self):
134
+ # type: () -> None
135
+ super(ClosedDirectoryStreamException, self).__init__()
136
+
137
+
138
+ class ClosedFileSystemException(IllegalStateException):
139
+ def __init__(self):
140
+ # type: () -> None
141
+ super(ClosedFileSystemException, self).__init__()
142
+
143
+
144
+ class DirectoryIteratorException(ConcurrentModificationException):
145
+ def __init__(self, cause):
146
+ # type: (Throwable) -> None
147
+ super(DirectoryIteratorException, self).__init__(cause=cause)
148
+
149
+
150
+ class FileSystemAlreadyExistsException(RuntimeException):
151
+ def __init__(self, message=None):
152
+ # type: (Optional[str]) -> None
153
+ super(FileSystemAlreadyExistsException, self).__init__(message)
154
+
155
+
156
+ class FileSystemException(IOException):
157
+ def __init__(
158
+ self,
159
+ file, # type: Union[str, unicode]
160
+ other=None, # type: Union[str, unicode, None]
161
+ reason=None, # type: Union[str, unicode, None]
162
+ ):
163
+ # type: (...) -> None
164
+ super(FileSystemException, self).__init__()
165
+ self._file = file
166
+ self._other = other
167
+ self._reason = reason
168
+
169
+ def getFile(self):
170
+ # type: () -> Union[str, unicode]
171
+ return self._file
172
+
173
+ def getOtherFile(self):
174
+ # type: () -> Union[str, unicode, None]
175
+ return self._other
176
+
177
+ def getReason(self):
178
+ # type: () -> Union[str, unicode, None]
179
+ return self._reason
180
+
181
+
182
+ class AccessDeniedException(FileSystemException):
183
+ def __init__(
184
+ self,
185
+ file, # type: Union[str, unicode]
186
+ other=None, # type: Union[str, unicode, None]
187
+ reason=None, # type: Union[str, unicode, None]
188
+ ):
189
+ # type: (...) -> None
190
+ super(AccessDeniedException, self).__init__(file, other, reason)
191
+
192
+
193
+ class AtomicMoveNotSupportedException(FileSystemException):
194
+ def __init__(
195
+ self,
196
+ source, # type: Union[str, unicode]
197
+ target, # type: Union[str, unicode]
198
+ reason, # type: Union[str, unicode]
199
+ ):
200
+ # type: (...) -> None
201
+ super(AtomicMoveNotSupportedException, self).__init__(source, target, reason)
202
+
203
+
204
+ class DirectoryNotEmptyException(FileSystemException):
205
+ def __init__(self, dir_):
206
+ # type: (Union[str, unicode]) -> None
207
+ super(DirectoryNotEmptyException, self).__init__(dir_)
208
+
209
+
210
+ class FileAlreadyExistsException(FileSystemException):
211
+ def __init__(
212
+ self,
213
+ file, # type: Union[str, unicode]
214
+ other=None, # type: Union[str, unicode, None]
215
+ reason=None, # type: Union[str, unicode, None]
216
+ ):
217
+ # type: (...) -> None
218
+ super(FileAlreadyExistsException, self).__init__(file, other, reason)
219
+
220
+
221
+ class FileSystemLoopException(FileSystemException):
222
+ def __init__(self, file):
223
+ # type: (Union[str, unicode]) -> None
224
+ super(FileSystemLoopException, self).__init__(file)
225
+
226
+
227
+ class FileSystemNotFoundException(RuntimeException):
228
+ def __init__(self, message=None):
229
+ # type: (Optional[str]) -> None
230
+ super(FileSystemNotFoundException, self).__init__(message)
231
+
232
+
233
+ class NoSuchFileException(FileSystemException):
234
+ def __init__(
235
+ self,
236
+ file, # type: Union[str, unicode]
237
+ other=None, # type: Union[str, unicode, None]
238
+ reason=None, # type: Union[str, unicode, None]
239
+ ):
240
+ # type: (...) -> None
241
+ super(NoSuchFileException, self).__init__(file, other, reason)
242
+
243
+
244
+ class NotDirectoryException(FileSystemException):
245
+ def __init__(self, file):
246
+ # type: (Union[str, unicode]) -> None
247
+ super(NotDirectoryException, self).__init__(file)
248
+
249
+
250
+ class NotLinkException(FileSystemException):
251
+ def __init__(
252
+ self,
253
+ file, # type: Union[str, unicode]
254
+ other=None, # type: Union[str, unicode, None]
255
+ reason=None, # type: Union[str, unicode, None]
256
+ ):
257
+ # type: (...) -> None
258
+ super(NotLinkException, self).__init__(file, other, reason)
259
+
260
+
261
+ class FileVisitOption(Enum):
262
+ FOLLOW_LINKS = None # type: FileVisitOption
263
+
264
+ @staticmethod
265
+ def values():
266
+ # type: () -> List[FileVisitOption]
267
+ pass
268
+
269
+
270
+ class Files(Object):
271
+ @staticmethod
272
+ def copy(*args):
273
+ # type: (*Any) -> Union[long, Path]
274
+ pass
275
+
276
+ @staticmethod
277
+ def createDirectories(dir, *attrs):
278
+ # type: (Path, *FileAttribute) -> Path
279
+ pass
280
+
281
+ @staticmethod
282
+ def createDirectory(dir, *attrs):
283
+ # type: (Path, *FileAttribute) -> Path
284
+ pass
285
+
286
+ @staticmethod
287
+ def createFile(path, *attrs):
288
+ # type: (Path, *FileAttribute) -> Path
289
+ pass
290
+
291
+ @staticmethod
292
+ def createLink(link, existing):
293
+ # type: (Path, Path) -> Path
294
+ pass
295
+
296
+ @staticmethod
297
+ def createSymbolicLink(link, target, *attrs):
298
+ # type: (Path, Path, FileAttribute) -> Path
299
+ pass
300
+
301
+ @staticmethod
302
+ def createTempDirectory(*args):
303
+ # type: (*Any) -> Path
304
+ pass
305
+
306
+ @staticmethod
307
+ def createTempFile(*args):
308
+ # type: (*Any) -> Path
309
+ pass
310
+
311
+ @staticmethod
312
+ def delete(path):
313
+ # type: (Path) -> None
314
+ pass
315
+
316
+ @staticmethod
317
+ def deleteIfExists(path):
318
+ # type: (Path) -> bool
319
+ return True
320
+
321
+ @staticmethod
322
+ def exists(path, *options):
323
+ # type: (Path, *LinkOption) -> bool
324
+ return True
325
+
326
+ @staticmethod
327
+ def find(start, maxDepth, matcher, *options):
328
+ # type: (Path, int, BiPredicate, *FileVisitOption) -> Stream
329
+ pass
330
+
331
+ @staticmethod
332
+ def getAttribute(path, attribute, *options):
333
+ # type: (Path, Union[str, unicode], *LinkOption) -> Object
334
+ pass
335
+
336
+ @staticmethod
337
+ def getFileAttributeView(path, type, *options):
338
+ # type: (Path, Class, *LinkOption) -> FileAttributeView
339
+ pass
340
+
341
+ @staticmethod
342
+ def getFileStore(path):
343
+ # type: (Path) -> FileStore
344
+ pass
345
+
346
+ @staticmethod
347
+ def getLastModifiedTime(path, *options):
348
+ # type: (Path, *LinkOption) -> FileTime
349
+ pass
350
+
351
+ @staticmethod
352
+ def getOwner(path, *options):
353
+ # type: (Path, *LinkOption) -> UserPrincipal
354
+ pass
355
+
356
+ @staticmethod
357
+ def getPosixFilePermissions(path, *options):
358
+ # type: (Path, *LinkOption) -> Set[PosixFilePermission]
359
+ pass
360
+
361
+ @staticmethod
362
+ def isDirectory(path, *options):
363
+ # type: (Path, *LinkOption) -> bool
364
+ return True
365
+
366
+ @staticmethod
367
+ def isExecutable(path):
368
+ # type: (Path) -> bool
369
+ return True
370
+
371
+ @staticmethod
372
+ def isHidden(path):
373
+ # type: (Path) -> bool
374
+ return True
375
+
376
+ @staticmethod
377
+ def isReadable(path):
378
+ # type: (Path) -> bool
379
+ return True
380
+
381
+ @staticmethod
382
+ def isRegularFile(path, *options):
383
+ # type: (Path, *LinkOption) -> bool
384
+ return True
385
+
386
+ @staticmethod
387
+ def isSameFile(path, path2):
388
+ # type: (Path, Path) -> bool
389
+ return True
390
+
391
+ @staticmethod
392
+ def isSymbolicLink(path):
393
+ # type: (Path) -> bool
394
+ return True
395
+
396
+ @staticmethod
397
+ def isWritable(path):
398
+ # type: (Path) -> bool
399
+ return True
400
+
401
+ @staticmethod
402
+ def lines(path, cs=None):
403
+ # type: (Path, Optional[Charset]) -> Stream
404
+ pass
405
+
406
+ @staticmethod
407
+ def list(path):
408
+ # type: (Path) -> Stream
409
+ pass
410
+
411
+ @staticmethod
412
+ def move(source, target, *options):
413
+ # type: (Path, Path, *CopyOption) -> Path
414
+ pass
415
+
416
+ @staticmethod
417
+ def newBufferedReader(path, cs=None):
418
+ # type: (Path, Optional[Charset]) -> BufferedReader
419
+ pass
420
+
421
+ @staticmethod
422
+ def newBufferedWriter(path, *args):
423
+ # type: (Path, *Any) -> BufferedWriter
424
+ pass
425
+
426
+ @staticmethod
427
+ def newByteChannel(path, *args):
428
+ # type: (Path, *Any) -> SeekableByteChannel
429
+ pass
430
+
431
+ @staticmethod
432
+ def newDirectoryStream(dir, *args):
433
+ # type: (Path, *Any) -> DirectoryStream
434
+ pass
435
+
436
+ @staticmethod
437
+ def newInputStream(path, *options):
438
+ # type: (Path, *OpenOption) -> InputStream
439
+ pass
440
+
441
+ @staticmethod
442
+ def newOutputStream(path, *options):
443
+ # type: (Path, *OpenOption) -> OutputStream
444
+ pass
445
+
446
+ @staticmethod
447
+ def notExists(path, *options):
448
+ # type: (Path, *LinkOption) -> bool
449
+ return True
450
+
451
+ @staticmethod
452
+ def probeContentType(path):
453
+ # type: (Path) -> Union[str, unicode]
454
+ pass
455
+
456
+ @staticmethod
457
+ def readAllBytes(path):
458
+ # type: (Path) -> bytearray
459
+ pass
460
+
461
+ @staticmethod
462
+ def readAllLines(path, cs=None):
463
+ # type: (Path, Optional[Charset]) -> List[Union[str, unicode]]
464
+ pass
465
+
466
+ @staticmethod
467
+ def readAttributes(path, *args):
468
+ # type: (Path, *Any) -> BasicFileAttributes
469
+ pass
470
+
471
+ @staticmethod
472
+ def readString(path, cs=None):
473
+ # type: (Path, Optional[Charset]) -> Union[str, unicode]
474
+ pass
475
+
476
+ @staticmethod
477
+ def readSymbolicLink(link):
478
+ # type: (Path) -> Path
479
+ pass
480
+
481
+ @staticmethod
482
+ def setAttribute(path, attribute, value, *options):
483
+ # type: (Path, Union[str, unicode], Object, *LinkOption) -> Path
484
+ pass
485
+
486
+ @staticmethod
487
+ def setLastModifiedTime(path, time):
488
+ # type: (Path, FileTime) -> Path
489
+ pass
490
+
491
+ @staticmethod
492
+ def setOwner(path, owner):
493
+ # type: (Path, UserPrincipal) -> Path
494
+ pass
495
+
496
+ @staticmethod
497
+ def setPosixFilePermissions(path, perms):
498
+ # type: (Path, Set[PosixFilePermission]) -> Path
499
+ pass
500
+
501
+ @staticmethod
502
+ def size(path):
503
+ # type: (Path) -> long
504
+ pass
505
+
506
+ @staticmethod
507
+ def walk(path, *args):
508
+ # type: (Path, *Any) -> Stream
509
+ pass
510
+
511
+ @staticmethod
512
+ def walkFileTree(path, *args):
513
+ # type: (Path, *Any) -> Path
514
+ pass
515
+
516
+ @staticmethod
517
+ def write(path, *args):
518
+ # type: (Path, *Any) -> Path
519
+ pass
520
+
521
+ @staticmethod
522
+ def writeString(path, csq, *args):
523
+ # type: (Path, CharSequence, *Any) -> Path
524
+ pass
525
+
526
+
527
+ class InvalidPathException(IllegalArgumentException):
528
+ def __init__(self, input, reason, index=None):
529
+ # type: (str, str, Optional[int]) -> None
530
+ super(InvalidPathException, self).__init__(reason)
531
+ self._input = input
532
+ self._reason = reason
533
+ self._index = index
534
+
535
+ def getIndex(self):
536
+ # type: () -> Optional[int]
537
+ return self._index
538
+
539
+ def getInput(self):
540
+ # type: () -> Union[str, unicode]
541
+ return self._input
542
+
543
+ def getReason(self):
544
+ # type: () -> Union[str, unicode]
545
+ return self._reason
546
+
547
+
548
+ class LinkOption(Enum, CopyOption, OpenOption):
549
+ NOFOLLOW_LINKS = None # type: LinkOption
550
+
551
+ @staticmethod
552
+ def values():
553
+ # type: () -> List[LinkOption]
554
+ pass
555
+
556
+
557
+ class Path(Watchable):
558
+ def compareTo(self, other):
559
+ # type: (Path) -> int
560
+ pass
561
+
562
+ def endsWith(self, other):
563
+ # type: (Union[str, unicode, Object, Path]) -> bool
564
+ return True
565
+
566
+ def equals(self, other):
567
+ # type: (Object) -> bool
568
+ return True
569
+
570
+ def getFileName(self):
571
+ # type: () -> Path
572
+ pass
573
+
574
+ def getName(self, index):
575
+ # type: (int) -> Path
576
+ pass
577
+
578
+ def getNameCount(self):
579
+ # type: () -> int
580
+ pass
581
+
582
+ def getParent(self):
583
+ # type: () -> Path
584
+ pass
585
+
586
+ def getRoot(self):
587
+ # type: () -> Path
588
+ pass
589
+
590
+ def hashCode(self):
591
+ # type: () -> int
592
+ pass
593
+
594
+ def isAbsolute(self):
595
+ # type: () -> bool
596
+ return True
597
+
598
+ def iterator(self):
599
+ # type: () -> Iterator[Path]
600
+ pass
601
+
602
+ def normalize(self):
603
+ # type: () -> Path
604
+ pass
605
+
606
+ @staticmethod
607
+ def of(*args):
608
+ # type: (Any) -> Path
609
+ pass
610
+
611
+ def register(self, *args):
612
+ # type: (Any) -> WatchKey
613
+ pass
614
+
615
+ def relativize(self, other):
616
+ # type: (Path) -> Path
617
+ pass
618
+
619
+ def resolve(self, other):
620
+ # type: (Union[Path, str, unicode]) -> Path
621
+ pass
622
+
623
+ def resolveSibling(self, other):
624
+ # type: (Path) -> Path
625
+ pass
626
+
627
+ def startsWith(self, other):
628
+ # type: (Path) -> bool
629
+ return True
630
+
631
+ def subpath(self, beginIndex, endIndex):
632
+ # type: (int, int) -> Path
633
+ pass
634
+
635
+ def toAbsolutePath(self):
636
+ # type: () -> Path
637
+ pass
638
+
639
+ def toFile(self):
640
+ # type: () -> Any
641
+ pass
642
+
643
+ def toRealPath(self, *args):
644
+ # type: (LinkOption) -> Path
645
+ pass
646
+
647
+ def toString(self):
648
+ # type: () -> Union[str, unicode]
649
+ pass
650
+
651
+ def toUri(self):
652
+ # type: () -> Any
653
+ pass
654
+
655
+
656
+ class Paths(Object):
657
+ @staticmethod
658
+ def get(*args):
659
+ # type: (*Any) -> Path
660
+ pass
661
+
662
+
663
+ class ReadOnlyFileSystemException(UnsupportedOperationException):
664
+ def __init__(self):
665
+ # type: () -> None
666
+ super(ReadOnlyFileSystemException, self).__init__()
667
+
668
+
669
+ class StandardCopyOption(Enum, CopyOption, OpenOption):
670
+ ATOMIC_MOVE = None # type: StandardCopyOption
671
+ COPY_ATTRIBUTES = None # type: StandardCopyOption
672
+ REPLACE_EXISTING = None # type: StandardCopyOption
673
+
674
+ @staticmethod
675
+ def values():
676
+ # type: () -> List[StandardCopyOption]
677
+ pass
678
+
679
+
680
+ class WatchEvent(object):
681
+
682
+ class Kind(object):
683
+ def name(self):
684
+ # type: () -> Union[str, unicode]
685
+ raise NotImplementedError
686
+
687
+ def type(self):
688
+ # type: () -> Class
689
+ raise NotImplementedError
690
+
691
+ class Modifier(object):
692
+ def name(self):
693
+ # type: () -> Union[str, unicode]
694
+ raise NotImplementedError
695
+
696
+ def context(self):
697
+ # type: () -> Any
698
+ raise NotImplementedError
699
+
700
+ def count(self):
701
+ # type: () -> int
702
+ raise NotImplementedError
703
+
704
+ def kind(self):
705
+ # type: () -> WatchEvent.Kind
706
+ raise NotImplementedError
707
+
708
+
709
+ class WatchKey(object):
710
+ def cancel(self):
711
+ # type: () -> None
712
+ raise NotImplementedError
713
+
714
+ def isValid(self):
715
+ # type: () -> bool
716
+ raise NotImplementedError
717
+
718
+ def pollEvents(self):
719
+ # type: () -> List[WatchEvent]
720
+ raise NotImplementedError
721
+
722
+ def reset(self):
723
+ # type: () -> bool
724
+ raise NotImplementedError
725
+
726
+ def watchable(self):
727
+ # type: () -> Watchable
728
+ raise NotImplementedError