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,9 @@
1
+ __all__ = ["Type"]
2
+
3
+ from typing import Union
4
+
5
+
6
+ class Type(object):
7
+ def getTypeName(self):
8
+ # type: () -> Union[str, unicode]
9
+ raise NotImplementedError
java/math/__init__.py ADDED
@@ -0,0 +1,93 @@
1
+ from __future__ import print_function
2
+
3
+ __all__ = ["BigDecimal", "BigInteger", "MathContext", "RoundingMode"]
4
+
5
+ from typing import Any, List
6
+
7
+ from java.lang import Enum, Number, Object
8
+
9
+
10
+ class BigDecimal(Number):
11
+ ONE = None # type: BigDecimal
12
+ TEN = None # type: BigDecimal
13
+ ZERO = None # type: BigDecimal
14
+
15
+ def __init__(self, *args):
16
+ # type: (*Any) -> None
17
+ super(BigDecimal, self).__init__()
18
+ print(args)
19
+
20
+ def doubleValue(self):
21
+ # type: () -> float
22
+ pass
23
+
24
+ def floatValue(self):
25
+ # type: () -> float
26
+ pass
27
+
28
+ def intValue(self):
29
+ # type: () -> int
30
+ pass
31
+
32
+ def longValue(self):
33
+ # type: () -> long
34
+ pass
35
+
36
+
37
+ class BigInteger(Number):
38
+ ONE = None # type: BigInteger
39
+ TEN = None # type: BigInteger
40
+ TWO = None # type: BigInteger
41
+ ZERO = None # type: BigInteger
42
+
43
+ def __init__(self, *args):
44
+ # type: (*Any) -> None
45
+ super(BigInteger, self).__init__()
46
+ print(args)
47
+
48
+ def doubleValue(self):
49
+ # type: () -> float
50
+ pass
51
+
52
+ def floatValue(self):
53
+ # type: () -> float
54
+ pass
55
+
56
+ def intValue(self):
57
+ # type: () -> int
58
+ pass
59
+
60
+ def longValue(self):
61
+ # type: () -> long
62
+ pass
63
+
64
+
65
+ class MathContext(Object):
66
+ def __init__(self, *args):
67
+ # type: (*Any) -> None
68
+ super(MathContext, self).__init__()
69
+ print(args)
70
+
71
+ def getPrecision(self):
72
+ # type: () -> int
73
+ pass
74
+
75
+ def getRoundingMode(self):
76
+ # type: () -> RoundingMode
77
+ pass
78
+
79
+
80
+ class RoundingMode(Enum):
81
+ CEILING = None # type: RoundingMode
82
+ DOWN = None # type: RoundingMode
83
+ FLOOR = None # type: RoundingMode
84
+ HALF_DOWN = None # type: RoundingMode
85
+ HALF_EVEN = None # type: RoundingMode
86
+ HALF_UP = None # type: RoundingMode
87
+ UNNECESSARY = None # type: RoundingMode
88
+ UP = None # type: RoundingMode
89
+
90
+ @staticmethod
91
+ def values():
92
+ # type: () -> List[RoundingMode]
93
+ pass
java/net/__init__.py ADDED
@@ -0,0 +1,504 @@
1
+ """Provides the classes for implementing networking applications."""
2
+
3
+ from __future__ import print_function
4
+
5
+ __all__ = [
6
+ "CookieHandler",
7
+ "CookieManager",
8
+ "CookiePolicy",
9
+ "CookieStore",
10
+ "FileNameMap",
11
+ "HttpCookie",
12
+ "InetAddress",
13
+ "InetSocketAddress",
14
+ "Proxy",
15
+ "Socket",
16
+ "SocketAddress",
17
+ "SocketImpl",
18
+ "SocketImplFactory",
19
+ "SocketOption",
20
+ "URI",
21
+ "UnknownHostException",
22
+ ]
23
+
24
+ from typing import Any, List, Mapping, Optional, Set, Union
25
+
26
+ from java.io import Closeable, InputStream, IOException, OutputStream
27
+ from java.lang import Class, Enum, Object
28
+ from java.nio.channels import SocketChannel
29
+
30
+
31
+ class SocketAddress(Object):
32
+ def __init__(self):
33
+ # type: () -> None
34
+ super(SocketAddress, self).__init__()
35
+
36
+
37
+ class CookiePolicy(object):
38
+ def shouldAccept(self, uri, cookie):
39
+ # type: (URI, HttpCookie) -> bool
40
+ raise NotImplementedError
41
+
42
+
43
+ class CookieStore(object):
44
+ def add(self, uri, cookie):
45
+ # type: (URI, HttpCookie) -> None
46
+ raise NotImplementedError
47
+
48
+ def get(self, uri):
49
+ # type: (URI) -> List[HttpCookie]
50
+ raise NotImplementedError
51
+
52
+ def getCookies(self):
53
+ # type: () -> List[HttpCookie]
54
+ raise NotImplementedError
55
+
56
+ def getURIs(self):
57
+ # type: () -> List[URI]
58
+ raise NotImplementedError
59
+
60
+ def remove(self, uri, cookie):
61
+ # type: (URI, HttpCookie) -> bool
62
+ raise NotImplementedError
63
+
64
+ def removeAll(self):
65
+ # type: () -> bool
66
+ raise NotImplementedError
67
+
68
+
69
+ class FileNameMap(object):
70
+ def getContentTypeFor(self, fileName):
71
+ # type: (Union[str, unicode]) -> Union[str, unicode]
72
+ raise NotImplementedError
73
+
74
+
75
+ class SocketImplFactory(object):
76
+ def createSocketImpl(self):
77
+ # type: () -> SocketImpl
78
+ raise NotImplementedError
79
+
80
+
81
+ class SocketOption(object):
82
+ def name(self):
83
+ # type: () -> Union[str, unicode]
84
+ raise NotImplementedError
85
+
86
+ def type(self):
87
+ # type: () -> Class
88
+ raise NotImplementedError
89
+
90
+
91
+ class CookieHandler(Object):
92
+ def __init__(self):
93
+ # type: () -> None
94
+ super(CookieHandler, self).__init__()
95
+
96
+ def get(
97
+ self,
98
+ uri, # type: URI
99
+ requestHeaders, # type: Mapping[Union[str, unicode], List[Union[str, unicode]]]
100
+ ):
101
+ # type: (...) -> Mapping[Union[str, unicode], List[Union[str, unicode]]] # noqa: W505
102
+ raise NotImplementedError
103
+
104
+ @staticmethod
105
+ def getDefault():
106
+ # type: () -> CookieHandler
107
+ pass
108
+
109
+ def put(
110
+ self,
111
+ uri, # type: URI
112
+ responseHeaders, # type: Mapping[Union[str, unicode], List[Union[str, unicode]]]
113
+ ):
114
+ # type: (...) -> Mapping[Union[str, unicode], List[Union[str, unicode]]] # noqa: W505
115
+ raise NotImplementedError
116
+
117
+ @staticmethod
118
+ def setDefault(cHandler):
119
+ # type: (CookieHandler) -> None
120
+ pass
121
+
122
+
123
+ class CookieManager(CookieHandler):
124
+ def __init__(self, *args):
125
+ # type: (*Any) -> None
126
+ super(CookieManager, self).__init__()
127
+ print(args)
128
+
129
+ def get(
130
+ self,
131
+ uri, # type: URI
132
+ requestHeaders, # type: Mapping[Union[str, unicode], List[Union[str, unicode]]]
133
+ ):
134
+ # type: (...) -> Mapping[Union[str, unicode], List[Union[str, unicode]]] # noqa: W505
135
+ pass
136
+
137
+ def getCookieStore(self):
138
+ # type: () -> CookieStore
139
+ pass
140
+
141
+ def put(
142
+ self,
143
+ uri, # type: URI
144
+ responseHeaders, # type: Mapping[Union[str, unicode], List[Union[str, unicode]]]
145
+ ):
146
+ # type: (...) -> Mapping[Union[str, unicode], List[Union[str, unicode]]] # noqa: W505
147
+ pass
148
+
149
+ def setCookiePolicy(self, cookiePolicy):
150
+ # type: (CookiePolicy) -> None
151
+ pass
152
+
153
+
154
+ class HttpCookie(Object):
155
+ def __init__(self, name, value):
156
+ # type: (Union[str, unicode], Union[str, unicode]) -> None
157
+ super(HttpCookie, self).__init__()
158
+ print(name, value)
159
+
160
+
161
+ class InetAddress(Object):
162
+ def getAddress(self):
163
+ # type: () -> bytearray
164
+ pass
165
+
166
+ @staticmethod
167
+ def getAllByName(host):
168
+ # type: (Union[str, unicode]) -> List[InetAddress]
169
+ pass
170
+
171
+ @staticmethod
172
+ def getByAddress(*args):
173
+ # type: (*Any) -> InetAddress
174
+ pass
175
+
176
+ @staticmethod
177
+ def getByName(host):
178
+ # type: (Union[str, unicode]) -> InetAddress
179
+ pass
180
+
181
+ def getCanonicalHostName(self):
182
+ # type: () -> Union[str, unicode]
183
+ pass
184
+
185
+ def getHostAddress(self):
186
+ # type: () -> Union[str, unicode]
187
+ pass
188
+
189
+ def getHostName(self):
190
+ # type: () -> Union[str, unicode]
191
+ pass
192
+
193
+ @staticmethod
194
+ def getLocalHost():
195
+ # type: () -> InetAddress
196
+ pass
197
+
198
+ @staticmethod
199
+ def getLoopbackAddress():
200
+ # type: () -> InetAddress
201
+ pass
202
+
203
+ def isAnyLocalAddress(self):
204
+ # type: () -> bool
205
+ return True
206
+
207
+ def isLinkLocalAddress(self):
208
+ # type: () -> bool
209
+ return True
210
+
211
+ def isLoopbackAddress(self):
212
+ # type: () -> bool
213
+ return True
214
+
215
+ def isMCGlobal(self):
216
+ # type: () -> bool
217
+ return True
218
+
219
+ def isMCLinkLocal(self):
220
+ # type: () -> bool
221
+ return True
222
+
223
+ def isMCNodeLocal(self):
224
+ # type: () -> bool
225
+ return True
226
+
227
+ def isMCOrgLocal(self):
228
+ # type: () -> bool
229
+ return True
230
+
231
+ def isMCSiteLocal(self):
232
+ # type: () -> bool
233
+ return True
234
+
235
+ def isMulticastAddress(self):
236
+ # type: () -> bool
237
+ return True
238
+
239
+ def isReachable(self, *args):
240
+ # type: (*Any) -> bool
241
+ return True
242
+
243
+ def isSiteLocalAddress(self):
244
+ # type: () -> bool
245
+ return True
246
+
247
+
248
+ class InetSocketAddress(SocketAddress):
249
+ def __init__(self, *args):
250
+ # type: (*Any) -> None
251
+ super(InetSocketAddress, self).__init__()
252
+ print(args)
253
+
254
+ @staticmethod
255
+ def createUnresolved(host, port):
256
+ # type: (Union[str, unicode], int) -> InetSocketAddress
257
+ return InetSocketAddress(host, port)
258
+
259
+ def getAddress(self):
260
+ # type: () -> InetAddress
261
+ pass
262
+
263
+ def getHostname(self):
264
+ # type: () -> Union[str, unicode]
265
+ pass
266
+
267
+ def getHostString(self):
268
+ # type: () -> Union[str, unicode]
269
+ pass
270
+
271
+ def getPort(self):
272
+ # type: () -> int
273
+ pass
274
+
275
+ def isUnresolved(self):
276
+ # type: () -> bool
277
+ return True
278
+
279
+
280
+ class Proxy(Object):
281
+
282
+ class Type(Enum):
283
+ DIRECT = None # type: Proxy.Type
284
+ HTTP = None # type: Proxy.Type
285
+ SOCKS = None # type: Proxy.Type
286
+
287
+ @staticmethod
288
+ def values():
289
+ # type: () -> List[Proxy.Type]
290
+ pass
291
+
292
+ NO_PROXY = None # type: Proxy
293
+
294
+ def __init__(self, type_, sa):
295
+ # type: (Proxy.Type, SocketAddress) -> None
296
+ super(Proxy, self).__init__()
297
+ print(type_, sa)
298
+
299
+ def address(self):
300
+ # type: () -> SocketAddress
301
+ pass
302
+
303
+ def type(self):
304
+ # type: () -> Proxy.Type
305
+ pass
306
+
307
+
308
+ class Socket(Object, Closeable):
309
+ def __init__(self, *args):
310
+ # type: (*Any) -> None
311
+ super(Socket, self).__init__()
312
+ print(args)
313
+
314
+ def bind(self, bindpoint):
315
+ # type: (SocketAddress) -> None
316
+ pass
317
+
318
+ def close(self):
319
+ # type: () -> None
320
+ pass
321
+
322
+ def connect(self, endpoint, timeout=None):
323
+ # type: (SocketAddress, Optional[int]) -> None
324
+ pass
325
+
326
+ def getChannel(self):
327
+ # type: () -> SocketChannel
328
+ pass
329
+
330
+ def getInetAddress(self):
331
+ # type: () -> InetAddress
332
+ pass
333
+
334
+ def getInputStream(self):
335
+ # type: () -> InputStream
336
+ pass
337
+
338
+ def getKeepAlive(self):
339
+ # type: () -> bool
340
+ return True
341
+
342
+ def getLocalAddress(self):
343
+ # type: () -> InetAddress
344
+ pass
345
+
346
+ def getLocalPort(self):
347
+ # type: () -> int
348
+ pass
349
+
350
+ def getLocalSocketAddress(self):
351
+ # type: () -> SocketAddress
352
+ pass
353
+
354
+ def getOOBInline(self):
355
+ # type: () -> bool
356
+ return True
357
+
358
+ def getOption(self, name):
359
+ # type: (SocketOption) -> Any
360
+ pass
361
+
362
+ def getOutputStream(self):
363
+ # type: () -> OutputStream
364
+ pass
365
+
366
+ def getPort(self):
367
+ # type: () -> int
368
+ pass
369
+
370
+ def getReceiveBufferSize(self):
371
+ # type: () -> int
372
+ pass
373
+
374
+ def getRemoteSocketAddress(self):
375
+ # type: () -> SocketAddress
376
+ pass
377
+
378
+ def getReuseAddress(self):
379
+ # type: () -> bool
380
+ return True
381
+
382
+ def getSendBufferSize(self):
383
+ # type: () -> int
384
+ pass
385
+
386
+ def getSoLinger(self):
387
+ # type: () -> int
388
+ pass
389
+
390
+ def getSoTimeout(self):
391
+ # type: () -> int
392
+ pass
393
+
394
+ def getTcpNoDelay(self):
395
+ # type: () -> bool
396
+ return True
397
+
398
+ def getTrafficClass(self):
399
+ # type: () -> int
400
+ pass
401
+
402
+ def isBound(self):
403
+ # type: () -> bool
404
+ return True
405
+
406
+ def isClosed(self):
407
+ # type: () -> bool
408
+ return True
409
+
410
+ def isConnected(self):
411
+ # type: () -> bool
412
+ return True
413
+
414
+ def isInputShutdown(self):
415
+ # type: () -> bool
416
+ return True
417
+
418
+ def isOutputShutdown(self):
419
+ # type: () -> bool
420
+ return True
421
+
422
+ def sendUrgentData(self, data):
423
+ # type: (int) -> None
424
+ pass
425
+
426
+ def setKeepAlive(self, on):
427
+ # type: (bool) -> None
428
+ pass
429
+
430
+ def setOOBInline(self, on):
431
+ # type: (bool) -> None
432
+ pass
433
+
434
+ def setOption(self, name, value):
435
+ # type: (SocketOption, Any) -> Socket
436
+ pass
437
+
438
+ def setPerformancePreferences(self, connectionTime, latency, bandwidth):
439
+ # type: (int, int, int) -> None
440
+ pass
441
+
442
+ def setReceiveBufferSize(self, size):
443
+ # type: (int) -> None
444
+ pass
445
+
446
+ def setReuseAddress(self, on):
447
+ # type: (bool) -> None
448
+ pass
449
+
450
+ def setSendBufferSize(self, size):
451
+ # type: (int) -> None
452
+ pass
453
+
454
+ @staticmethod
455
+ def setSocketImplFactory(fac):
456
+ # type: (SocketImplFactory) -> None
457
+ pass
458
+
459
+ def setSoLinger(self, on, linger):
460
+ # type: (bool, int) -> None
461
+ pass
462
+
463
+ def setSoTimeout(self, timeout):
464
+ # type: (int) -> None
465
+ pass
466
+
467
+ def setTcpNoDelay(self, on):
468
+ # type: (bool) -> None
469
+ pass
470
+
471
+ def setTrafficClass(self, tc):
472
+ # type: (int) -> None
473
+ pass
474
+
475
+ def shutdownInput(self):
476
+ # type: () -> None
477
+ pass
478
+
479
+ def shutdownOutput(self):
480
+ # type: () -> None
481
+ pass
482
+
483
+ def supportedOptions(self):
484
+ # type: () -> Set[SocketOption]
485
+ pass
486
+
487
+
488
+ class SocketImpl(Object):
489
+ def __init__(self):
490
+ # type: () -> None
491
+ super(SocketImpl, self).__init__()
492
+
493
+
494
+ class URI(Object):
495
+ def __init__(self, *args):
496
+ # type: (*Any) -> None
497
+ super(URI, self).__init__()
498
+ print(args)
499
+
500
+
501
+ class UnknownHostException(IOException):
502
+ def __init__(self, message=None):
503
+ # type: (Optional[str]) -> None
504
+ super(UnknownHostException, self).__init__(message)
@@ -0,0 +1,15 @@
1
+ __all__ = ["HttpClient", "HttpRequest", "HttpResponse"]
2
+
3
+ from java.lang import Object
4
+
5
+
6
+ class HttpResponse(object):
7
+ pass
8
+
9
+
10
+ class HttpClient(Object):
11
+ pass
12
+
13
+
14
+ class HttpRequest(Object):
15
+ pass