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/text/__init__.py ADDED
@@ -0,0 +1,543 @@
1
+ from __future__ import print_function
2
+
3
+ __all__ = [
4
+ "AttributedCharacterIterator",
5
+ "CharacterIterator",
6
+ "DateFormat",
7
+ "DateFormatSymbols",
8
+ "FieldPosition",
9
+ "Format",
10
+ "NumberFormat",
11
+ "ParsePosition",
12
+ "SimpleDateFormat",
13
+ ]
14
+
15
+ from typing import Any, Dict, List, Optional, Set, Union
16
+
17
+ from java.lang import Number, Object, StringBuffer
18
+ from java.math import RoundingMode
19
+ from java.util import Calendar, Currency, Date, Locale, TimeZone
20
+
21
+
22
+ class CharacterIterator(object):
23
+ DONE = None # type: str
24
+
25
+ def clone(self):
26
+ # type: () -> str
27
+ raise NotImplementedError
28
+
29
+ def current(self):
30
+ # type: () -> str
31
+ raise NotImplementedError
32
+
33
+ def first(self):
34
+ # type: () -> str
35
+ raise NotImplementedError
36
+
37
+ def getBeginIndex(self):
38
+ # type: () -> int
39
+ raise NotImplementedError
40
+
41
+ def getEndIndex(self):
42
+ # type: () -> int
43
+ raise NotImplementedError
44
+
45
+ def getIndex(self):
46
+ # type: () -> int
47
+ raise NotImplementedError
48
+
49
+ def last(self):
50
+ # type: () -> str
51
+ raise NotImplementedError
52
+
53
+ def next(self):
54
+ # type: () -> str
55
+ raise NotImplementedError
56
+
57
+ def previous(self):
58
+ # type: () -> str
59
+ raise NotImplementedError
60
+
61
+ def setIndex(self, position):
62
+ # type: (int) -> str
63
+ raise NotImplementedError
64
+
65
+
66
+ class AttributedCharacterIterator(CharacterIterator):
67
+
68
+ class Attribute(Object):
69
+ INPUT_METHOD_SEGMENT = None # type: AttributedCharacterIterator.Attribute
70
+ LANGUAGE = None # type: AttributedCharacterIterator.Attribute
71
+ READING = None # type: AttributedCharacterIterator.Attribute
72
+
73
+ def clone(self):
74
+ # type: () -> str
75
+ raise NotImplementedError
76
+
77
+ def current(self):
78
+ # type: () -> str
79
+ raise NotImplementedError
80
+
81
+ def first(self):
82
+ # type: () -> str
83
+ raise NotImplementedError
84
+
85
+ def getAllAttributeKeys(self):
86
+ # type: () -> Set[AttributedCharacterIterator.Attribute]
87
+ raise NotImplementedError
88
+
89
+ def getAttribute(self, attribute):
90
+ # type: (AttributedCharacterIterator.Attribute) -> Object
91
+ raise NotImplementedError
92
+
93
+ def getAttributes(self):
94
+ # type: () -> Dict[AttributedCharacterIterator.Attribute, Object] # noqa: W505
95
+ raise NotImplementedError
96
+
97
+ def getBeginIndex(self):
98
+ # type: () -> int
99
+ raise NotImplementedError
100
+
101
+ def getEndIndex(self):
102
+ # type: () -> int
103
+ raise NotImplementedError
104
+
105
+ def getIndex(self):
106
+ # type: () -> int
107
+ raise NotImplementedError
108
+
109
+ def last(self):
110
+ # type: () -> str
111
+ raise NotImplementedError
112
+
113
+ def next(self):
114
+ # type: () -> str
115
+ raise NotImplementedError
116
+
117
+ def previous(self):
118
+ # type: () -> str
119
+ raise NotImplementedError
120
+
121
+ def setIndex(self, position):
122
+ # type: (int) -> str
123
+ raise NotImplementedError
124
+
125
+
126
+ class FieldPosition(Object):
127
+ def __init__(self, *args):
128
+ # type: (*Any) -> None
129
+ super(FieldPosition, self).__init__()
130
+ print(args)
131
+
132
+ def getBeginIndex(self):
133
+ # type: () -> int
134
+ pass
135
+
136
+ def getEndIndex(self):
137
+ # type: () -> int
138
+ pass
139
+
140
+ def getField(self):
141
+ # type: () -> Any
142
+ pass
143
+
144
+ def getFieldAttribute(self):
145
+ # type: () -> Format.Field
146
+ pass
147
+
148
+ def setBeginIndex(self, bi):
149
+ # type: (int) -> None
150
+ pass
151
+
152
+ def setEndIndex(self, ei):
153
+ # type: (int) -> None
154
+ pass
155
+
156
+
157
+ class Format(Object):
158
+
159
+ class Field(AttributedCharacterIterator.Attribute):
160
+ pass
161
+
162
+ def clone(self):
163
+ # type: () -> Object
164
+ pass
165
+
166
+ def formatToCharacterIterator(self, obj):
167
+ # type: (Object) -> AttributedCharacterIterator
168
+ pass
169
+
170
+ def parseObject(self, source, pos=None):
171
+ # type: (Union[str, unicode], Optional[ParsePosition]) -> Object
172
+ pass
173
+
174
+
175
+ class DateFormat(Format):
176
+ AM_PM_FIELD = None # type: int
177
+ DATE_FIELD = None # type: int
178
+ DAY_OF_WEEK_FIELD = None # type: int
179
+ DAY_OF_WEEK_IN_MONTH_FIELD = None # type: int
180
+ DAY_OF_YEAR_FIELD = None # type: int
181
+ DEFAULT = None # type: int
182
+ ERA_FIELD = None # type: int
183
+ FULL = None # type: int
184
+ HOUR_OF_DAY0_FIELD = None # type: int
185
+ HOUR_OF_DAY1_FIELD = None # type: int
186
+ HOUR0_FIELD = None # type: int
187
+ HOUR1_FIELD = None # type: int
188
+ LONG = None # type: int
189
+ MEDIUM = None # type: int
190
+ MILLISECOND_FIELD = None # type: int
191
+ MONTH_FIELD = None # type: int
192
+ SECOND_FIELD = None # type: int
193
+ SHORT = None # type: int
194
+ TIMEZONE_FIELD = None # type: int
195
+ WEEK_OF_MONTH_FIELD = None # type: int
196
+ WEEK_OF_YEAR_FIELD = None # type: int
197
+ YEAR_FIELD = None # type: int
198
+
199
+ def format(
200
+ self,
201
+ date, # type: Union[Date, Object]
202
+ toAppendTo=None, # type: Optional[StringBuffer]
203
+ pos=None, # type: Optional[FieldPosition]
204
+ ): # type: (...) -> Union[str, unicode, StringBuffer]
205
+ pass
206
+
207
+ @staticmethod
208
+ def getAvailableLocales():
209
+ # type: () -> List[Locale]
210
+ pass
211
+
212
+ def getCalendar(self):
213
+ # type: () -> Calendar
214
+ pass
215
+
216
+ @staticmethod
217
+ def getDateInstance(style=None, aLocale=None):
218
+ # type: (Optional[int], Optional[Locale]) -> DateFormat
219
+ pass
220
+
221
+ @staticmethod
222
+ def getDateTimeInstance():
223
+ # type: () -> DateFormat
224
+ pass
225
+
226
+ @staticmethod
227
+ def getInstance():
228
+ # type: () -> DateFormat
229
+ pass
230
+
231
+ def getNumberFormat(self):
232
+ # type: () -> NumberFormat
233
+ pass
234
+
235
+ @staticmethod
236
+ def getTimeInstance(style, aLocale=None):
237
+ # type: (int, Optional[Locale]) -> DateFormat
238
+ pass
239
+
240
+ def getTimeZone(self):
241
+ # type: () -> TimeZone
242
+ pass
243
+
244
+ def isLenient(self):
245
+ # type: () -> bool
246
+ return True
247
+
248
+ def parse(self, source):
249
+ # type: (Union[str, unicode]) -> Date
250
+ pass
251
+
252
+ def setCalendar(self, newCalendar):
253
+ # type: (Calendar) -> None
254
+ pass
255
+
256
+ def setLenient(self, lenient):
257
+ # type: (bool) -> None
258
+ pass
259
+
260
+ def setNumberFormat(self, newNumberFormat):
261
+ # type: (NumberFormat) -> None
262
+ pass
263
+
264
+ def setTimeZone(self, zone):
265
+ # type: (TimeZone) -> None
266
+ pass
267
+
268
+
269
+ class DateFormatSymbols(Object):
270
+ def __init__(self, locale=None):
271
+ # type: (Optional[Locale]) -> None
272
+ super(DateFormatSymbols, self).__init__()
273
+ print(locale)
274
+
275
+ def clone(self):
276
+ # type: () -> Object
277
+ pass
278
+
279
+ def getAmPmStrings(self):
280
+ # type: () -> List[Union[str, unicode]]
281
+ pass
282
+
283
+ @staticmethod
284
+ def getAvailableLocales():
285
+ # type: () -> List[Locale]
286
+ pass
287
+
288
+ def getEras(self):
289
+ # type: () -> List[Union[str, unicode]]
290
+ pass
291
+
292
+ @staticmethod
293
+ def getInstance(locale=None):
294
+ # type: (Optional[Locale]) -> DateFormatSymbols
295
+ pass
296
+
297
+ def getLocalPatternChars(self):
298
+ # type: () -> Union[str, unicode]
299
+ pass
300
+
301
+ def getMonths(self):
302
+ # type: () -> List[Union[str, unicode]]
303
+ pass
304
+
305
+ def getShortMonths(self):
306
+ # type: () -> List[Union[str, unicode]]
307
+ pass
308
+
309
+ def getShortWeekdays(self):
310
+ # type: () -> List[Union[str, unicode]]
311
+ pass
312
+
313
+ def getWeekdays(self):
314
+ # type: () -> List[Union[str, unicode]]
315
+ pass
316
+
317
+ def getZoneStrings(self):
318
+ # type: () -> List[List[Union[str, unicode]]]
319
+ pass
320
+
321
+ def setAmPmStrings(self, newAmpms):
322
+ # type: (List[Union[str, unicode]]) -> None
323
+ pass
324
+
325
+ def setEras(self, newEras):
326
+ # type: (List[Union[str, unicode]]) -> None
327
+ pass
328
+
329
+ def setLocalPatternChars(self, newLocalPatternChars):
330
+ # type: (Union[str, unicode]) -> None
331
+ pass
332
+
333
+ def setMonths(self, newMonths):
334
+ # type: (List[Union[str, unicode]]) -> None
335
+ pass
336
+
337
+ def setShortMonths(self, newShortMonths):
338
+ # type: (List[Union[str, unicode]]) -> None
339
+ pass
340
+
341
+ def setShortWeekdays(self, newShortWeekdays):
342
+ # type: (List[Union[str, unicode]]) -> None
343
+ pass
344
+
345
+ def setWeekdays(self, newWeekdays):
346
+ # type: (List[Union[str, unicode]]) -> None
347
+ pass
348
+
349
+ def setZoneStrings(self, newZoneStrings):
350
+ # type: (List[List[Union[str, unicode]]]) -> None
351
+ pass
352
+
353
+
354
+ class NumberFormat(Format):
355
+
356
+ class Field(Format.Field):
357
+ CURRENCY = None # type: NumberFormat.Field
358
+ DECIMAL_SEPARATOR = None # type: NumberFormat.Field
359
+ EXPONENT = None # type: NumberFormat.Field
360
+ EXPONENT_SIGN = None # type: NumberFormat.Field
361
+ EXPONENT_SYMBOL = None # type: NumberFormat.Field
362
+ FRACTION = None # type: NumberFormat.Field
363
+ GROUPING_SEPARATOR = None # type: NumberFormat.Field
364
+ INTEGER = None # type: NumberFormat.Field
365
+ PERCENT = None # type: NumberFormat.Field
366
+ PERMILLE = None # type: NumberFormat.Field
367
+ SIGN = None # type: NumberFormat.Field
368
+
369
+ FRACTION_FIELD = None # type: int
370
+ INTEGER_FIELD = None # type: int
371
+
372
+ def format(
373
+ self,
374
+ number, # type: Union[float, long, Object]
375
+ toAppendTo=None, # type: Optional[StringBuffer]
376
+ pos=None, # type: Optional[FieldPosition]
377
+ ):
378
+ # type: (...) -> Union[str, unicode, StringBuffer]
379
+ raise NotImplementedError
380
+
381
+ @staticmethod
382
+ def getAvailableLocales():
383
+ # type: () -> List[Locale]
384
+ pass
385
+
386
+ def getCurrency(self):
387
+ # type: () -> Currency
388
+ pass
389
+
390
+ @staticmethod
391
+ def getCurrencyInstance(inLocale=None):
392
+ # type: (Optional[Locale]) -> NumberFormat
393
+ pass
394
+
395
+ @staticmethod
396
+ def getInstance(inLocale=None):
397
+ # type: (Optional[Locale]) -> NumberFormat
398
+ pass
399
+
400
+ @staticmethod
401
+ def getIntegerInstance(inLocale=None):
402
+ # type: (Optional[Locale]) -> NumberFormat
403
+ pass
404
+
405
+ def getMaximumFractionDigits(self):
406
+ # type: () -> int
407
+ pass
408
+
409
+ def getMaximumIntegerDigits(self):
410
+ # type: () -> int
411
+ pass
412
+
413
+ def getMinimumFractionDigits(self):
414
+ # type: () -> int
415
+ pass
416
+
417
+ def getMinimumIntegerDigits(self):
418
+ # type: () -> int
419
+ pass
420
+
421
+ @staticmethod
422
+ def getNumberInstance(inLocale=None):
423
+ # type: (Optional[Locale]) -> NumberFormat
424
+ pass
425
+
426
+ @staticmethod
427
+ def getPercentInstance(inLocale=None):
428
+ # type: (Optional[Locale]) -> NumberFormat
429
+ pass
430
+
431
+ def getRoundingMode(self):
432
+ # type: () -> RoundingMode
433
+ pass
434
+
435
+ def isGroupingUsed(self):
436
+ # type: () -> bool
437
+ return True
438
+
439
+ def isParseIntegerOnly(self):
440
+ # type: () -> bool
441
+ return True
442
+
443
+ def parse(self, source):
444
+ # type: (Union[str, unicode]) -> Number
445
+ pass
446
+
447
+ def setCurrency(self, currency):
448
+ # type: (Currency) -> None
449
+ pass
450
+
451
+ def setGroupingUsed(self, newValue):
452
+ # type: (bool) -> None
453
+ pass
454
+
455
+ def setMaximumFractionDigits(self, newValue):
456
+ # type: (int) -> None
457
+ pass
458
+
459
+ def setMaximumIntegerDigits(self, newValue):
460
+ # type: (int) -> None
461
+ pass
462
+
463
+ def setMinimumFractionDigits(self, newValue):
464
+ # type: (int) -> None
465
+ pass
466
+
467
+ def setMinimumIntegerDigits(self, newValue):
468
+ # type: (int) -> None
469
+ pass
470
+
471
+ def setParseIntegerOnly(self, value):
472
+ # type: (bool) -> None
473
+ pass
474
+
475
+ def setRoundingMode(self, roundingMode):
476
+ # type: (RoundingMode) -> None
477
+ pass
478
+
479
+
480
+ class ParsePosition(Object):
481
+ def __init__(self, index):
482
+ # type: (int) -> None
483
+ super(ParsePosition, self).__init__()
484
+ print(index)
485
+
486
+ def getErrorIndex(self):
487
+ # type: () -> int
488
+ pass
489
+
490
+ def getIndex(self):
491
+ # type: () -> int
492
+ pass
493
+
494
+ def setErrorIndex(self, ei):
495
+ # type: (int) -> None
496
+ pass
497
+
498
+ def setIndex(self, index):
499
+ # type: (int) -> None
500
+ pass
501
+
502
+
503
+ class SimpleDateFormat(DateFormat):
504
+ def __init__(
505
+ self,
506
+ pattern=None, # type: Union[str, unicode, None]
507
+ arg=None, # type: Union[DateFormatSymbols, Locale, None]
508
+ ):
509
+ # type: (...) -> None
510
+ super(SimpleDateFormat, self).__init__()
511
+ print(pattern, arg)
512
+
513
+ def applyLocalizedPattern(self, pattern):
514
+ # type: (Union[str, unicode]) -> None
515
+ pass
516
+
517
+ def applyPattern(self, pattern):
518
+ # type: (Union[str, unicode]) -> None
519
+ pass
520
+
521
+ def get2DigitYearStart(self):
522
+ # type: () -> Date
523
+ pass
524
+
525
+ def getDateFormatSymbols(self):
526
+ # type: () -> DateFormatSymbols
527
+ pass
528
+
529
+ def set2DigitYearStart(self, startDate):
530
+ # type: (Date) -> None
531
+ pass
532
+
533
+ def setDateFormatSymbols(self, newFormatSymbols):
534
+ # type: (DateFormatSymbols) -> None
535
+ pass
536
+
537
+ def toLocalizedPattern(self):
538
+ # type: () -> Union[str, unicode]
539
+ pass
540
+
541
+ def toPattern(self):
542
+ # type: () -> Union[str, unicode]
543
+ pass