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
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
__all__ = [
|
|
2
|
+
"Channel",
|
|
3
|
+
"FileChannel",
|
|
4
|
+
"FileLock",
|
|
5
|
+
"ReadableByteChannel",
|
|
6
|
+
"SeekableByteChannel",
|
|
7
|
+
"SelectableChannel",
|
|
8
|
+
"SelectionKey",
|
|
9
|
+
"Selector",
|
|
10
|
+
"SocketChannel",
|
|
11
|
+
"WriteableByteChannel",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
from typing import Any, Optional, Set, Union
|
|
15
|
+
|
|
16
|
+
from java.lang import AutoCloseable, Object
|
|
17
|
+
from java.nio import ByteBuffer, MappedByteBuffer
|
|
18
|
+
from java.util.function import Consumer
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Channel(AutoCloseable):
|
|
22
|
+
def close(self):
|
|
23
|
+
# type: () -> None
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def isOpen(self):
|
|
27
|
+
# type: () -> bool
|
|
28
|
+
return True
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ReadableByteChannel(Channel):
|
|
32
|
+
def read(self, dst):
|
|
33
|
+
# type: (ByteBuffer) -> int
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class WriteableByteChannel(Channel):
|
|
38
|
+
def write(self, src):
|
|
39
|
+
# type: (ByteBuffer) -> int
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class FileChannel(Object, Channel):
|
|
44
|
+
|
|
45
|
+
class MapMode(Object):
|
|
46
|
+
PRIVATE = None # type: FileChannel.MapMode
|
|
47
|
+
READ_ONLY = None # type: FileChannel.MapMode
|
|
48
|
+
READ_WRITE = None # type: FileChannel.MapMode
|
|
49
|
+
|
|
50
|
+
def force(self, metaData):
|
|
51
|
+
# type: (bool) -> None
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
def lock(self):
|
|
55
|
+
# type: () -> FileLock
|
|
56
|
+
pass
|
|
57
|
+
|
|
58
|
+
def map(self, mode, position, size):
|
|
59
|
+
# type: (FileChannel.MapMode, long, long) -> MappedByteBuffer
|
|
60
|
+
raise NotImplementedError
|
|
61
|
+
|
|
62
|
+
@staticmethod
|
|
63
|
+
def open(*args):
|
|
64
|
+
# type: (*Any) -> FileChannel
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
def position(self, newPosition=None):
|
|
68
|
+
# type: (Optional[long]) -> Union[FileChannel, long]
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
def read(self, *args):
|
|
72
|
+
# type: (Any) -> Union[int, long]
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
def size(self):
|
|
76
|
+
# type: () -> long
|
|
77
|
+
pass
|
|
78
|
+
|
|
79
|
+
def transferFrom(self, src, position, count):
|
|
80
|
+
# type: (ReadableByteChannel, long, long) -> long
|
|
81
|
+
pass
|
|
82
|
+
|
|
83
|
+
def transferTo(self, position, count, target):
|
|
84
|
+
# type: (long, long, WriteableByteChannel) -> long
|
|
85
|
+
pass
|
|
86
|
+
|
|
87
|
+
def truncate(self, size):
|
|
88
|
+
# type: (long) -> FileChannel
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
def tryLock(
|
|
92
|
+
self,
|
|
93
|
+
position=None, # type: Optional[long]
|
|
94
|
+
size=None, # type: Optional[long]
|
|
95
|
+
shared=None, # type: Optional[bool]
|
|
96
|
+
):
|
|
97
|
+
# type: (...) -> FileLock
|
|
98
|
+
pass
|
|
99
|
+
|
|
100
|
+
def write(self, *args):
|
|
101
|
+
# type: (Any) -> Union[int, long]
|
|
102
|
+
pass
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class FileLock(Object, AutoCloseable):
|
|
106
|
+
def acquiredBy(self):
|
|
107
|
+
# type: () -> Channel
|
|
108
|
+
pass
|
|
109
|
+
|
|
110
|
+
def channel(self):
|
|
111
|
+
# type: () -> FileChannel
|
|
112
|
+
pass
|
|
113
|
+
|
|
114
|
+
def close(self):
|
|
115
|
+
# type: () -> None
|
|
116
|
+
pass
|
|
117
|
+
|
|
118
|
+
def isShared(self):
|
|
119
|
+
# type: () -> bool
|
|
120
|
+
return True
|
|
121
|
+
|
|
122
|
+
def isValid(self):
|
|
123
|
+
# type: () -> bool
|
|
124
|
+
raise NotImplementedError
|
|
125
|
+
|
|
126
|
+
def overlaps(self, position, size):
|
|
127
|
+
# type: (long, long) -> bool
|
|
128
|
+
return True
|
|
129
|
+
|
|
130
|
+
def position(self):
|
|
131
|
+
# type: () -> long
|
|
132
|
+
pass
|
|
133
|
+
|
|
134
|
+
def release(self):
|
|
135
|
+
# type: () -> None
|
|
136
|
+
raise NotImplementedError
|
|
137
|
+
|
|
138
|
+
def size(self):
|
|
139
|
+
# type: () -> long
|
|
140
|
+
pass
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class SeekableByteChannel(ReadableByteChannel, WriteableByteChannel):
|
|
144
|
+
def position(self, newPosition=None):
|
|
145
|
+
# type: (Optional[long]) -> Union[long, SeekableByteChannel]
|
|
146
|
+
pass
|
|
147
|
+
|
|
148
|
+
def size(self):
|
|
149
|
+
# type: () -> long
|
|
150
|
+
pass
|
|
151
|
+
|
|
152
|
+
def truncate(self, size):
|
|
153
|
+
# type: (long) -> SeekableByteChannel
|
|
154
|
+
pass
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class SelectableChannel(Object, AutoCloseable):
|
|
158
|
+
def close(self):
|
|
159
|
+
# type: () -> None
|
|
160
|
+
pass
|
|
161
|
+
|
|
162
|
+
def blockingLock(self):
|
|
163
|
+
# type: () -> Object
|
|
164
|
+
pass
|
|
165
|
+
|
|
166
|
+
def configureBlocking(self):
|
|
167
|
+
# type: () -> SelectableChannel
|
|
168
|
+
pass
|
|
169
|
+
|
|
170
|
+
def isBlocking(self):
|
|
171
|
+
# type: () -> bool
|
|
172
|
+
return True
|
|
173
|
+
|
|
174
|
+
def isRegistered(self):
|
|
175
|
+
# type: () -> bool
|
|
176
|
+
return True
|
|
177
|
+
|
|
178
|
+
def keyFor(self, sel):
|
|
179
|
+
# type: (Selector) -> SelectionKey
|
|
180
|
+
pass
|
|
181
|
+
|
|
182
|
+
def provider(self):
|
|
183
|
+
# type: () -> Object
|
|
184
|
+
pass
|
|
185
|
+
|
|
186
|
+
def register(self, sel, ops, att=None):
|
|
187
|
+
# type: (Selector, int, Optional[Object]) -> SelectionKey
|
|
188
|
+
pass
|
|
189
|
+
|
|
190
|
+
def validOps(self):
|
|
191
|
+
# type: () -> int
|
|
192
|
+
pass
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
class SelectionKey(Object):
|
|
196
|
+
OP_ACCEPT = None # type: int
|
|
197
|
+
OP_CONNECT = None # type: int
|
|
198
|
+
OP_READ = None # type: int
|
|
199
|
+
OP_WRITE = None # type: int
|
|
200
|
+
|
|
201
|
+
def attach(self, ob):
|
|
202
|
+
# type: (Object) -> Object
|
|
203
|
+
pass
|
|
204
|
+
|
|
205
|
+
def attachment(self):
|
|
206
|
+
# type: () -> Object
|
|
207
|
+
pass
|
|
208
|
+
|
|
209
|
+
def cancel(self):
|
|
210
|
+
# type: () -> None
|
|
211
|
+
pass
|
|
212
|
+
|
|
213
|
+
def channel(self):
|
|
214
|
+
# type: () -> SelectableChannel
|
|
215
|
+
pass
|
|
216
|
+
|
|
217
|
+
def interestOps(self, ops=None):
|
|
218
|
+
# type: (Optional[int]) -> Union[int, SelectionKey]
|
|
219
|
+
pass
|
|
220
|
+
|
|
221
|
+
def interestOpsAnd(self, ops):
|
|
222
|
+
# type: (int) -> int
|
|
223
|
+
pass
|
|
224
|
+
|
|
225
|
+
def interestOpsOr(self, ops):
|
|
226
|
+
# type: (int) -> int
|
|
227
|
+
pass
|
|
228
|
+
|
|
229
|
+
def isAcceptable(self):
|
|
230
|
+
# type: () -> bool
|
|
231
|
+
return True
|
|
232
|
+
|
|
233
|
+
def isConnectable(self):
|
|
234
|
+
# type: () -> bool
|
|
235
|
+
return True
|
|
236
|
+
|
|
237
|
+
def isReadable(self):
|
|
238
|
+
# type: () -> bool
|
|
239
|
+
return True
|
|
240
|
+
|
|
241
|
+
def isValid(self):
|
|
242
|
+
# type: () -> bool
|
|
243
|
+
return True
|
|
244
|
+
|
|
245
|
+
def isWriteable(self):
|
|
246
|
+
# type: () -> bool
|
|
247
|
+
return True
|
|
248
|
+
|
|
249
|
+
def readyOps(self):
|
|
250
|
+
# type: () -> int
|
|
251
|
+
pass
|
|
252
|
+
|
|
253
|
+
def selector(self):
|
|
254
|
+
# type: () -> Selector
|
|
255
|
+
pass
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class Selector(Object, AutoCloseable):
|
|
259
|
+
def close(self):
|
|
260
|
+
# type: () -> None
|
|
261
|
+
pass
|
|
262
|
+
|
|
263
|
+
def isOpen(self):
|
|
264
|
+
# type: () -> bool
|
|
265
|
+
return True
|
|
266
|
+
|
|
267
|
+
def keys(self):
|
|
268
|
+
# type: () -> Set[SelectionKey]
|
|
269
|
+
pass
|
|
270
|
+
|
|
271
|
+
@staticmethod
|
|
272
|
+
def open():
|
|
273
|
+
# type: () -> Selector
|
|
274
|
+
pass
|
|
275
|
+
|
|
276
|
+
def provider(self):
|
|
277
|
+
# type: () -> Object
|
|
278
|
+
pass
|
|
279
|
+
|
|
280
|
+
def select(self, *args):
|
|
281
|
+
# type: (Any) -> int
|
|
282
|
+
pass
|
|
283
|
+
|
|
284
|
+
def selectedKeys(self):
|
|
285
|
+
# type: () -> Set[SelectionKey]
|
|
286
|
+
pass
|
|
287
|
+
|
|
288
|
+
def selectNow(self, action=None):
|
|
289
|
+
# type: (Optional[Consumer]) -> int
|
|
290
|
+
pass
|
|
291
|
+
|
|
292
|
+
def wakeup(self):
|
|
293
|
+
# type: () -> Selector
|
|
294
|
+
pass
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
class SocketChannel(SelectableChannel):
|
|
298
|
+
def bind(self, local):
|
|
299
|
+
# type: (Any) -> SocketChannel
|
|
300
|
+
pass
|
|
301
|
+
|
|
302
|
+
def connect(self, remote):
|
|
303
|
+
# type: (Any) -> bool
|
|
304
|
+
return True
|
|
305
|
+
|
|
306
|
+
def finishConnect(self):
|
|
307
|
+
# type: () -> bool
|
|
308
|
+
return True
|
|
309
|
+
|
|
310
|
+
def getLocalAddress(self):
|
|
311
|
+
# type: () -> Any
|
|
312
|
+
pass
|
|
313
|
+
|
|
314
|
+
def getRemoteAddress(self):
|
|
315
|
+
# type: () -> Any
|
|
316
|
+
pass
|
|
317
|
+
|
|
318
|
+
def isConnected(self):
|
|
319
|
+
# type: () -> bool
|
|
320
|
+
return True
|
|
321
|
+
|
|
322
|
+
def isConnectionPending(self):
|
|
323
|
+
# type: () -> bool
|
|
324
|
+
return True
|
|
325
|
+
|
|
326
|
+
def open(self, remote=None):
|
|
327
|
+
# type: (Optional[Any]) -> SocketChannel
|
|
328
|
+
pass
|
|
329
|
+
|
|
330
|
+
def read(self, *args):
|
|
331
|
+
# type: (Any) -> Union[int, long]
|
|
332
|
+
pass
|
|
333
|
+
|
|
334
|
+
def setOption(self, name, value):
|
|
335
|
+
# type: (Any, Any) -> SocketChannel
|
|
336
|
+
pass
|
|
337
|
+
|
|
338
|
+
def shutdownInput(self):
|
|
339
|
+
# type: () -> SocketChannel
|
|
340
|
+
pass
|
|
341
|
+
|
|
342
|
+
def shutdownOutput(self):
|
|
343
|
+
# type: () -> SocketChannel
|
|
344
|
+
pass
|
|
345
|
+
|
|
346
|
+
def socket(self):
|
|
347
|
+
# type: () -> Any
|
|
348
|
+
pass
|
|
349
|
+
|
|
350
|
+
def write(self, *args):
|
|
351
|
+
# type: (Any) -> Union[int, long]
|
|
352
|
+
pass
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
__all__ = ["Charset", "CharsetDecoder", "CharsetEncoder", "CoderResult"]
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional, Set, Union
|
|
4
|
+
|
|
5
|
+
from java.lang import Object
|
|
6
|
+
from java.nio import ByteBuffer, CharBuffer
|
|
7
|
+
from java.util import Locale
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Charset(Object):
|
|
11
|
+
def aliases(self):
|
|
12
|
+
# type: () -> Set[Union[str, unicode]]
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
@staticmethod
|
|
16
|
+
def availableCharsets():
|
|
17
|
+
# type: () -> Dict[Union[str, unicode], Charset]
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
def canEncode(self):
|
|
21
|
+
# type: () -> bool
|
|
22
|
+
return True
|
|
23
|
+
|
|
24
|
+
def compareTo(self, that):
|
|
25
|
+
# type: (Charset) -> int
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def contains(self, cs):
|
|
29
|
+
# type: (Charset) -> bool
|
|
30
|
+
return True
|
|
31
|
+
|
|
32
|
+
def decode(self, bb):
|
|
33
|
+
# type: (ByteBuffer) -> CharBuffer
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
@staticmethod
|
|
37
|
+
def defaultCharset():
|
|
38
|
+
# type: () -> Charset
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
def displayName(self, locale):
|
|
42
|
+
# type: (Optional[Locale]) -> Union[str, unicode]
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
def encode(self, arg):
|
|
46
|
+
# type: (Union[Charset, str, unicode]) -> ByteBuffer
|
|
47
|
+
pass
|
|
48
|
+
|
|
49
|
+
@staticmethod
|
|
50
|
+
def forName(charsetName):
|
|
51
|
+
# type: (Union[str, unicode]) -> Charset
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
def isRegistered(self):
|
|
55
|
+
# type: () -> bool
|
|
56
|
+
return True
|
|
57
|
+
|
|
58
|
+
@staticmethod
|
|
59
|
+
def isSupported(charsetName):
|
|
60
|
+
# type: (Union[str, unicode]) -> bool
|
|
61
|
+
return True
|
|
62
|
+
|
|
63
|
+
def name(self):
|
|
64
|
+
# type: () -> Union[str, unicode]
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
def newDecoder(self):
|
|
68
|
+
# type: () -> CharsetDecoder
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
def newEncoder(self):
|
|
72
|
+
# type: () -> CharsetEncoder
|
|
73
|
+
pass
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class CharsetDecoder(Object):
|
|
77
|
+
def charset(self):
|
|
78
|
+
# type: () -> Charset
|
|
79
|
+
pass
|
|
80
|
+
|
|
81
|
+
def decode(
|
|
82
|
+
self,
|
|
83
|
+
in_, # type: ByteBuffer
|
|
84
|
+
out=None, # type: Optional[CharBuffer]
|
|
85
|
+
endOfInput=None, # type: Optional[bool]
|
|
86
|
+
):
|
|
87
|
+
# type: (...) -> CharBuffer
|
|
88
|
+
pass
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class CharsetEncoder(Object):
|
|
92
|
+
def charset(self):
|
|
93
|
+
# type: () -> Charset
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
def encode(
|
|
97
|
+
self,
|
|
98
|
+
in_, # type: ByteBuffer
|
|
99
|
+
out=None, # type: Optional[ByteBuffer]
|
|
100
|
+
endOfInput=None, # type: Optional[bool]
|
|
101
|
+
):
|
|
102
|
+
# type: (...) -> Union[ByteBuffer, CoderResult]
|
|
103
|
+
pass
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class CoderResult(Object):
|
|
107
|
+
OVERFLOW = None # type: CoderResult
|
|
108
|
+
UNDERFLOW = None # type: CoderResult
|
|
109
|
+
|
|
110
|
+
def isError(self):
|
|
111
|
+
# type: () -> bool
|
|
112
|
+
return True
|
|
113
|
+
|
|
114
|
+
def isMalformed(self):
|
|
115
|
+
# type: () -> bool
|
|
116
|
+
return True
|
|
117
|
+
|
|
118
|
+
def isOverflow(self):
|
|
119
|
+
# type: () -> bool
|
|
120
|
+
return True
|
|
121
|
+
|
|
122
|
+
def isUnderFlow(self):
|
|
123
|
+
# type: () -> bool
|
|
124
|
+
return True
|
|
125
|
+
|
|
126
|
+
def isUnmappable(self):
|
|
127
|
+
# type: () -> bool
|
|
128
|
+
return True
|
|
129
|
+
|
|
130
|
+
def length(self):
|
|
131
|
+
# type: () -> int
|
|
132
|
+
pass
|
|
133
|
+
|
|
134
|
+
@staticmethod
|
|
135
|
+
def malformedForLength(length):
|
|
136
|
+
# type: (int) -> CoderResult
|
|
137
|
+
pass
|
|
138
|
+
|
|
139
|
+
def throwException(self):
|
|
140
|
+
# type: () -> None
|
|
141
|
+
pass
|
|
142
|
+
|
|
143
|
+
@staticmethod
|
|
144
|
+
def unmappableForLength(length):
|
|
145
|
+
# type: (int) -> CoderResult
|
|
146
|
+
pass
|