java-api-stubs 17.25.0__py3-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__.pyi +0 -0
- java/awt/__init__.pyi +95 -0
- java/awt/event/__init__.pyi +87 -0
- java/awt/geom/__init__.pyi +38 -0
- java/awt/image/__init__.pyi +6 -0
- java/awt/print/__init__.pyi +32 -0
- java/beans/__init__.pyi +20 -0
- java/io/__init__.pyi +155 -0
- java/lang/__init__.pyi +260 -0
- java/lang/reflect/__init__.pyi +4 -0
- java/math/__init__.pyi +41 -0
- java/net/__init__.pyi +178 -0
- java/net/http/__init__.pyi +5 -0
- java/nio/__init__.pyi +196 -0
- java/nio/channels/__init__.pyi +127 -0
- java/nio/charset/__init__.pyi +59 -0
- java/nio/file/__init__.pyi +328 -0
- java/nio/file/attribute/__init__.pyi +57 -0
- java/org/__init__.pyi +0 -0
- java/org/jdesktop/__init__.pyi +0 -0
- java/org/jdesktop/core/__init__.pyi +0 -0
- java/org/jdesktop/core/animation/__init__.pyi +0 -0
- java/org/jdesktop/core/animation/timing/__init__.pyi +6 -0
- java/py.typed +0 -0
- java/security/__init__.pyi +11 -0
- java/text/__init__.pyi +211 -0
- java/time/__init__.pyi +233 -0
- java/time/chrono/__init__.pyi +103 -0
- java/time/format/__init__.pyi +44 -0
- java/time/temporal/__init__.pyi +148 -0
- java/util/__init__.pyi +530 -0
- java/util/concurrent/__init__.pyi +57 -0
- java/util/function/__init__.pyi +51 -0
- java/util/regex/__init__.pyi +73 -0
- java/util/stream/__init__.pyi +45 -0
- java_api_stubs-17.25.0.dist-info/METADATA +100 -0
- java_api_stubs-17.25.0.dist-info/RECORD +48 -0
- java_api_stubs-17.25.0.dist-info/WHEEL +5 -0
- java_api_stubs-17.25.0.dist-info/licenses/LICENSE +21 -0
- java_api_stubs-17.25.0.dist-info/top_level.txt +2 -0
- javax/__init__.pyi +0 -0
- javax/py.typed +0 -0
- javax/security/__init__.pyi +0 -0
- javax/security/auth/__init__.pyi +6 -0
- javax/swing/__init__.pyi +186 -0
- javax/swing/event/__init__.pyi +17 -0
- javax/swing/plaf/__init__.pyi +11 -0
- javax/swing/text/__init__.pyi +7 -0
java/lang/__init__.pyi
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import __builtin__ as builtins
|
|
2
|
+
from typing import Any, List, Optional, Union
|
|
3
|
+
|
|
4
|
+
from java.lang.reflect import Type
|
|
5
|
+
from java.nio import CharBuffer
|
|
6
|
+
from java.util import Iterator, Spliterator
|
|
7
|
+
from java.util.function import Consumer
|
|
8
|
+
|
|
9
|
+
class Object:
|
|
10
|
+
def __init__(self) -> None: ...
|
|
11
|
+
def __cmp__(self, other: Object) -> bool: ...
|
|
12
|
+
def equals(self, obj: Object) -> bool: ...
|
|
13
|
+
def getClass(self) -> Class: ...
|
|
14
|
+
def hashCode(self) -> int: ...
|
|
15
|
+
def notify(self) -> None: ...
|
|
16
|
+
def notifyAll(self) -> None: ...
|
|
17
|
+
def toString(self) -> Union[str, unicode]: ...
|
|
18
|
+
def wait(self, timeoutMillis: long = ..., nanos: int = ...) -> None: ...
|
|
19
|
+
def __lt__(self, other: Object) -> bool: ...
|
|
20
|
+
def __gt__(self, other: Object) -> bool: ...
|
|
21
|
+
def __ge__(self, other: Object) -> bool: ...
|
|
22
|
+
|
|
23
|
+
class Appendable:
|
|
24
|
+
def append(
|
|
25
|
+
self, c_csq: Union[CharSequence, str], start: int = ..., end: int = ...
|
|
26
|
+
) -> Appendable: ...
|
|
27
|
+
|
|
28
|
+
class AutoCloseable:
|
|
29
|
+
def close(self) -> None: ...
|
|
30
|
+
|
|
31
|
+
class CharSequence:
|
|
32
|
+
def charAt(self, index: int) -> str: ...
|
|
33
|
+
def chars(self) -> None: ...
|
|
34
|
+
def codePoints(self) -> None: ...
|
|
35
|
+
@staticmethod
|
|
36
|
+
def compare(cs1: CharSequence, cs2: CharSequence) -> int: ...
|
|
37
|
+
def length(self) -> int: ...
|
|
38
|
+
def subSequence(self, start: int, end: int) -> CharSequence: ...
|
|
39
|
+
def toString(self) -> Union[str, unicode]: ...
|
|
40
|
+
|
|
41
|
+
class Comparable:
|
|
42
|
+
def compareTo(self, o: Any) -> int: ...
|
|
43
|
+
|
|
44
|
+
class Iterable:
|
|
45
|
+
def forEach(self, action: Consumer) -> None: ...
|
|
46
|
+
def iterator(self) -> Iterator: ...
|
|
47
|
+
def spliterator(self) -> Spliterator: ...
|
|
48
|
+
|
|
49
|
+
class Readable:
|
|
50
|
+
def read(self, cb: CharBuffer) -> int: ...
|
|
51
|
+
|
|
52
|
+
class Runnable:
|
|
53
|
+
def run(self) -> None: ...
|
|
54
|
+
|
|
55
|
+
class Class(Object, Type):
|
|
56
|
+
def asSubClass(self, clazz: Class) -> Any: ...
|
|
57
|
+
def cast(self, obj: Object) -> Any: ...
|
|
58
|
+
def getTypeName(self) -> Union[str, unicode]: ...
|
|
59
|
+
|
|
60
|
+
class Enum(Object):
|
|
61
|
+
def compareTo(self, o: Enum) -> int: ...
|
|
62
|
+
def getDeclaringClass(self) -> Class: ...
|
|
63
|
+
def name(self) -> Union[str, unicode]: ...
|
|
64
|
+
def ordinal(self) -> int: ...
|
|
65
|
+
@staticmethod
|
|
66
|
+
def valueOf(enumType: Class, name: Union[str, unicode]) -> Enum: ...
|
|
67
|
+
|
|
68
|
+
class Number(Object):
|
|
69
|
+
def byteValue(self) -> int: ...
|
|
70
|
+
def doubleValue(self) -> float: ...
|
|
71
|
+
def floatValue(self) -> float: ...
|
|
72
|
+
def intValue(self) -> int: ...
|
|
73
|
+
def longValue(self) -> long: ...
|
|
74
|
+
def shortValue(self) -> int: ...
|
|
75
|
+
|
|
76
|
+
class StackTraceElement(Object):
|
|
77
|
+
def __init__(self, *args: Any) -> None: ...
|
|
78
|
+
def getClassLoaderName(self) -> str: ...
|
|
79
|
+
def getClassName(self) -> str: ...
|
|
80
|
+
def getFileName(self) -> str: ...
|
|
81
|
+
def getLineNumber(self) -> int: ...
|
|
82
|
+
def getMethodName(self) -> str: ...
|
|
83
|
+
def getModuleName(self) -> str: ...
|
|
84
|
+
def getModuleVersion(self) -> str: ...
|
|
85
|
+
def isNativeMethod(self) -> bool: ...
|
|
86
|
+
|
|
87
|
+
class String(unicode):
|
|
88
|
+
def __new__(cls, *args: Any) -> Any: ...
|
|
89
|
+
def __init__(self, *args: Any) -> None: ...
|
|
90
|
+
def charAt(self, index: int) -> unicode: ...
|
|
91
|
+
def chars(self) -> None: ...
|
|
92
|
+
def codePointAt(self, index: int) -> int: ...
|
|
93
|
+
def codePointBefore(self, index: int) -> int: ...
|
|
94
|
+
def codePointCount(self, beginIndex: int, endIndex: int) -> int: ...
|
|
95
|
+
def codePoints(self) -> None: ...
|
|
96
|
+
@staticmethod
|
|
97
|
+
def compare(cs1: CharSequence, cs2: CharSequence) -> int: ...
|
|
98
|
+
def compareTo(self, anotherString: String) -> int: ...
|
|
99
|
+
def compareToIgnoreCase(self, arg: String) -> int: ...
|
|
100
|
+
def concat(self, arg: String) -> String: ...
|
|
101
|
+
def contains(self, arg: String) -> bool: ...
|
|
102
|
+
def contentEquals(self, arg: Union[CharSequence, StringBuffer]) -> bool: ...
|
|
103
|
+
@staticmethod
|
|
104
|
+
def copyValueOf(*args: Any) -> String: ...
|
|
105
|
+
def endsWith(self, suffix: String) -> bool: ...
|
|
106
|
+
def equals(self, anObject: Object) -> bool: ...
|
|
107
|
+
def equalsIgnoreCase(self, anotherString: String) -> bool: ...
|
|
108
|
+
def getBytes(self, *args: Any) -> Optional[object]: ...
|
|
109
|
+
def getChars(
|
|
110
|
+
self, srcBegin: int, srcEnd: int, dst: object, dstBegin: int
|
|
111
|
+
) -> None: ...
|
|
112
|
+
def getClass(self) -> Class: ...
|
|
113
|
+
def hashCode(self) -> int: ...
|
|
114
|
+
def indexOf(
|
|
115
|
+
self, arg: Union[int, String], fromIndex: Optional[int] = ...
|
|
116
|
+
) -> int: ...
|
|
117
|
+
def intern(self) -> String: ...
|
|
118
|
+
def isBlank(self) -> bool: ...
|
|
119
|
+
def isEmpty(self) -> bool: ...
|
|
120
|
+
def lastIndexOf(
|
|
121
|
+
self, arg: Union[int, String], fromIndex: Optional[int] = ...
|
|
122
|
+
) -> int: ...
|
|
123
|
+
def length(self) -> int: ...
|
|
124
|
+
def lines(self) -> None: ...
|
|
125
|
+
def matches(self, regex: String) -> bool: ...
|
|
126
|
+
def notify(self) -> None: ...
|
|
127
|
+
def notifyAll(self) -> None: ...
|
|
128
|
+
def offsetByCodePoints(self, index: int, codePointOffset: int) -> int: ...
|
|
129
|
+
def regionMatches(self, *args: Any) -> bool: ...
|
|
130
|
+
def repeat(self, count: int) -> String: ...
|
|
131
|
+
def replaceAll(self, regex: String, replacement: String) -> String: ...
|
|
132
|
+
def replaceFirst(self, regex: String, replacement: String) -> String: ...
|
|
133
|
+
def startsWith(self, prefix: String, offset: int = ...) -> bool: ...
|
|
134
|
+
def stripLeading(self) -> String: ...
|
|
135
|
+
def stripTrailing(self) -> String: ...
|
|
136
|
+
def subSequence(self, start: int, end: int) -> CharSequence: ...
|
|
137
|
+
def substring(self, beginIndex: int, endIndex: Optional[int] = ...) -> String: ...
|
|
138
|
+
def toCharArray(self) -> object: ...
|
|
139
|
+
def toLowerCase(self, locale: Optional[Any] = ...) -> String: ...
|
|
140
|
+
def toString(self) -> unicode: ...
|
|
141
|
+
def toUpperCase(self) -> String: ...
|
|
142
|
+
@staticmethod
|
|
143
|
+
def valueOf(*args: Any) -> String: ...
|
|
144
|
+
def wait(self, timeoutMillis: long = ..., nanos: int = ...) -> None: ...
|
|
145
|
+
|
|
146
|
+
class StringBuffer(Object, CharSequence):
|
|
147
|
+
def __init__(self, *args: Any) -> None: ...
|
|
148
|
+
def append(self, *args: Any) -> StringBuffer: ...
|
|
149
|
+
def appendCodePoint(self, codePoint: int) -> StringBuffer: ...
|
|
150
|
+
def capacity(self) -> int: ...
|
|
151
|
+
def charAt(self, index: int) -> str: ...
|
|
152
|
+
def codePointAt(self, index: int) -> int: ...
|
|
153
|
+
def codePointBefore(self, index: int) -> int: ...
|
|
154
|
+
def codePointCount(self, beginIndex: int, endIndex: int) -> int: ...
|
|
155
|
+
def compareTo(self, another: StringBuffer) -> int: ...
|
|
156
|
+
def delete(self, start: int, end: int) -> StringBuffer: ...
|
|
157
|
+
def deleteCharAt(self, index: int) -> StringBuffer: ...
|
|
158
|
+
def ensureCapacity(self, minimumCapacity: int) -> None: ...
|
|
159
|
+
def getChars(self, srcBegin: int, srcEnd: int, dst: str, dstBegin: int) -> None: ...
|
|
160
|
+
def indexOf(self, string: str, fromIndex: int = ...) -> int: ...
|
|
161
|
+
def insert(self, *args: Any) -> StringBuffer: ...
|
|
162
|
+
def lastIndexOf(self, string: str, fromIndex: int = ...) -> int: ...
|
|
163
|
+
def length(self) -> int: ...
|
|
164
|
+
def offsetByCodePoints(self, index: int, codePointOffset: int) -> int: ...
|
|
165
|
+
def replace(self, start: int, end: int, string: str) -> StringBuffer: ...
|
|
166
|
+
def reverse(self) -> StringBuffer: ...
|
|
167
|
+
def setCharAt(self, index: int, ch: str) -> None: ...
|
|
168
|
+
def setLength(self, newLength: int) -> None: ...
|
|
169
|
+
def subSequence(self, start: int, end: int) -> CharSequence: ...
|
|
170
|
+
def substring(self, start: int, end: int = ...) -> str: ...
|
|
171
|
+
def trimToSize(self) -> None: ...
|
|
172
|
+
|
|
173
|
+
class StringBuilder(Object, CharSequence):
|
|
174
|
+
def __init__(self, *args: Any) -> None: ...
|
|
175
|
+
def append(self, *args: Any) -> StringBuilder: ...
|
|
176
|
+
def capacity(self) -> int: ...
|
|
177
|
+
def charAt(self, index: int) -> str: ...
|
|
178
|
+
def codePointAt(self, index: int) -> int: ...
|
|
179
|
+
def codePointBefore(self, index: int) -> int: ...
|
|
180
|
+
def codePointCount(self, beginIndex: int, endIndex: int) -> int: ...
|
|
181
|
+
def compareTo(self, another: StringBuilder) -> int: ...
|
|
182
|
+
def delete(self, start: int, end: int) -> StringBuilder: ...
|
|
183
|
+
def deleteCharAt(self, index: int) -> StringBuilder: ...
|
|
184
|
+
def ensureCapacity(self, minimumCapacity: int) -> None: ...
|
|
185
|
+
def getChars(self, srcBegin: int, srcEnd: int, dst: str, dstBegin: int) -> None: ...
|
|
186
|
+
def indexOf(self, str_: Union[str, unicode], fromIndex: int = ...) -> int: ...
|
|
187
|
+
def insert(self, *args: Any) -> StringBuilder: ...
|
|
188
|
+
def lastIndexOf(self, str_: Union[str, unicode], fromIndex: int = ...) -> int: ...
|
|
189
|
+
def length(self) -> int: ...
|
|
190
|
+
def offsetByCodePoints(self, index: int, codePointOffset: int) -> int: ...
|
|
191
|
+
def replace(self, start: int, end: int, str_: int) -> StringBuilder: ...
|
|
192
|
+
def reverse(self) -> StringBuilder: ...
|
|
193
|
+
def setCharAt(self, index: int, ch: str) -> None: ...
|
|
194
|
+
def setLength(self, newLength: int) -> None: ...
|
|
195
|
+
def subSequence(self, start: int, end: int) -> CharSequence: ...
|
|
196
|
+
def substring(self, start: int, end: int = ...) -> Union[str, unicode]: ...
|
|
197
|
+
def trimToSize(self) -> None: ...
|
|
198
|
+
|
|
199
|
+
class Throwable(Object, builtins.Exception):
|
|
200
|
+
def __init__(
|
|
201
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
202
|
+
) -> None: ...
|
|
203
|
+
@property
|
|
204
|
+
def cause(self) -> Throwable: ...
|
|
205
|
+
def addSuppressed(self, exception: Throwable) -> None: ...
|
|
206
|
+
def fillInStackTrace(self) -> Throwable: ...
|
|
207
|
+
def getCause(self) -> Throwable: ...
|
|
208
|
+
def getLocalizedMessage(self) -> str: ...
|
|
209
|
+
def getMessage(self) -> str: ...
|
|
210
|
+
def getStackTrace(self) -> List[StackTraceElement]: ...
|
|
211
|
+
def getSuppressed(self) -> List[Throwable]: ...
|
|
212
|
+
def initCause(self, cause: Optional[Throwable] = ...) -> None: ...
|
|
213
|
+
@property
|
|
214
|
+
def message(self) -> str: ...
|
|
215
|
+
def printStackTrace(self, *args: Any) -> None: ...
|
|
216
|
+
def setStackTrace(self, stackTrace: List[StackTraceElement]) -> None: ...
|
|
217
|
+
def toString(self) -> Union[str, unicode]: ...
|
|
218
|
+
|
|
219
|
+
class Exception(Throwable):
|
|
220
|
+
def __init__(
|
|
221
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
222
|
+
) -> None: ...
|
|
223
|
+
|
|
224
|
+
class RuntimeException(Exception):
|
|
225
|
+
def __init__(
|
|
226
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
227
|
+
) -> None: ...
|
|
228
|
+
|
|
229
|
+
class ClassCastException(RuntimeException):
|
|
230
|
+
def __init__(self, s: Optional[str] = ...) -> None: ...
|
|
231
|
+
|
|
232
|
+
class IllegalArgumentException(RuntimeException):
|
|
233
|
+
def __init__(
|
|
234
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
235
|
+
) -> None: ...
|
|
236
|
+
|
|
237
|
+
class IllegalStateException(RuntimeException):
|
|
238
|
+
def __init__(
|
|
239
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
240
|
+
) -> None: ...
|
|
241
|
+
|
|
242
|
+
class IndexOutOfBoundsException(RuntimeException):
|
|
243
|
+
def __init__(self, arg: Optional[Union[int, str, unicode]] = ...) -> None: ...
|
|
244
|
+
|
|
245
|
+
class ArrayIndexOutOfBoundsException(IndexOutOfBoundsException):
|
|
246
|
+
def __init__(self, arg: Optional[Union[int, str, unicode]] = ...) -> None: ...
|
|
247
|
+
|
|
248
|
+
class NullPointerException(RuntimeException):
|
|
249
|
+
def __init__(
|
|
250
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
251
|
+
) -> None: ...
|
|
252
|
+
|
|
253
|
+
class UnsupportedOperationException(RuntimeException):
|
|
254
|
+
def __init__(
|
|
255
|
+
self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
|
|
256
|
+
) -> None: ...
|
|
257
|
+
|
|
258
|
+
class Thread(Object):
|
|
259
|
+
@staticmethod
|
|
260
|
+
def sleep(millis: long) -> None: ...
|
java/math/__init__.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from typing import Any, List
|
|
2
|
+
|
|
3
|
+
from java.lang import Enum, Number, Object
|
|
4
|
+
|
|
5
|
+
class BigDecimal(Number):
|
|
6
|
+
ONE: BigDecimal
|
|
7
|
+
TEN: BigDecimal
|
|
8
|
+
ZERO: BigDecimal
|
|
9
|
+
def __init__(self, *args: Any) -> None: ...
|
|
10
|
+
def doubleValue(self) -> float: ...
|
|
11
|
+
def floatValue(self) -> float: ...
|
|
12
|
+
def intValue(self) -> int: ...
|
|
13
|
+
def longValue(self) -> long: ...
|
|
14
|
+
|
|
15
|
+
class BigInteger(Number):
|
|
16
|
+
ONE: BigInteger
|
|
17
|
+
TEN: BigInteger
|
|
18
|
+
TWO: BigInteger
|
|
19
|
+
ZERO: BigInteger
|
|
20
|
+
def __init__(self, *args: Any) -> None: ...
|
|
21
|
+
def doubleValue(self) -> float: ...
|
|
22
|
+
def floatValue(self) -> float: ...
|
|
23
|
+
def intValue(self) -> int: ...
|
|
24
|
+
def longValue(self) -> long: ...
|
|
25
|
+
|
|
26
|
+
class MathContext(Object):
|
|
27
|
+
def __init__(self, *args: Any) -> None: ...
|
|
28
|
+
def getPrecision(self) -> int: ...
|
|
29
|
+
def getRoundingMode(self) -> RoundingMode: ...
|
|
30
|
+
|
|
31
|
+
class RoundingMode(Enum):
|
|
32
|
+
CEILING: RoundingMode
|
|
33
|
+
DOWN: RoundingMode
|
|
34
|
+
FLOOR: RoundingMode
|
|
35
|
+
HALF_DOWN: RoundingMode
|
|
36
|
+
HALF_EVEN: RoundingMode
|
|
37
|
+
HALF_UP: RoundingMode
|
|
38
|
+
UNNECESSARY: RoundingMode
|
|
39
|
+
UP: RoundingMode
|
|
40
|
+
@staticmethod
|
|
41
|
+
def values() -> List[RoundingMode]: ...
|
java/net/__init__.pyi
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
from typing import Any, List, Mapping, Optional, Set, Union
|
|
2
|
+
|
|
3
|
+
from java.io import Closeable, InputStream, IOException, OutputStream
|
|
4
|
+
from java.lang import Class, Enum, Object
|
|
5
|
+
from java.nio.channels import SocketChannel
|
|
6
|
+
|
|
7
|
+
class SocketAddress(Object):
|
|
8
|
+
def __init__(self) -> None: ...
|
|
9
|
+
|
|
10
|
+
class CookiePolicy:
|
|
11
|
+
def shouldAccept(self, uri: URI, cookie: HttpCookie) -> bool: ...
|
|
12
|
+
|
|
13
|
+
class CookieStore:
|
|
14
|
+
def add(self, uri: URI, cookie: HttpCookie) -> None: ...
|
|
15
|
+
def get(self, uri: URI) -> List[HttpCookie]: ...
|
|
16
|
+
def getCookies(self) -> List[HttpCookie]: ...
|
|
17
|
+
def getURIs(self) -> List[URI]: ...
|
|
18
|
+
def remove(self, uri: URI, cookie: HttpCookie) -> bool: ...
|
|
19
|
+
def removeAll(self) -> bool: ...
|
|
20
|
+
|
|
21
|
+
class FileNameMap:
|
|
22
|
+
def getContentTypeFor(
|
|
23
|
+
self, fileName: Union[str, unicode]
|
|
24
|
+
) -> Union[str, unicode]: ...
|
|
25
|
+
|
|
26
|
+
class SocketImplFactory:
|
|
27
|
+
def createSocketImpl(self) -> SocketImpl: ...
|
|
28
|
+
|
|
29
|
+
class SocketOption:
|
|
30
|
+
def name(self) -> Union[str, unicode]: ...
|
|
31
|
+
def type(self) -> Class: ...
|
|
32
|
+
|
|
33
|
+
class CookieHandler(Object):
|
|
34
|
+
def __init__(self) -> None: ...
|
|
35
|
+
def get(
|
|
36
|
+
self,
|
|
37
|
+
uri: URI,
|
|
38
|
+
requestHeaders: Mapping[Union[str, unicode], List[Union[str, unicode]]],
|
|
39
|
+
) -> Mapping[Union[str, unicode], List[Union[str, unicode]]]: ...
|
|
40
|
+
@staticmethod
|
|
41
|
+
def getDefault() -> CookieHandler: ...
|
|
42
|
+
def put(
|
|
43
|
+
self,
|
|
44
|
+
uri: URI,
|
|
45
|
+
responseHeaders: Mapping[Union[str, unicode], List[Union[str, unicode]]],
|
|
46
|
+
) -> Mapping[Union[str, unicode], List[Union[str, unicode]]]: ...
|
|
47
|
+
@staticmethod
|
|
48
|
+
def setDefault(cHandler: CookieHandler) -> None: ...
|
|
49
|
+
|
|
50
|
+
class CookieManager(CookieHandler):
|
|
51
|
+
def __init__(self, *args: Any) -> None: ...
|
|
52
|
+
def get(
|
|
53
|
+
self,
|
|
54
|
+
uri: URI,
|
|
55
|
+
requestHeaders: Mapping[Union[str, unicode], List[Union[str, unicode]]],
|
|
56
|
+
) -> Mapping[Union[str, unicode], List[Union[str, unicode]]]: ...
|
|
57
|
+
def getCookieStore(self) -> CookieStore: ...
|
|
58
|
+
def put(
|
|
59
|
+
self,
|
|
60
|
+
uri: URI,
|
|
61
|
+
responseHeaders: Mapping[Union[str, unicode], List[Union[str, unicode]]],
|
|
62
|
+
) -> Mapping[Union[str, unicode], List[Union[str, unicode]]]: ...
|
|
63
|
+
def setCookiePolicy(self, cookiePolicy: CookiePolicy) -> None: ...
|
|
64
|
+
|
|
65
|
+
class HttpCookie(Object):
|
|
66
|
+
def __init__(
|
|
67
|
+
self, name: Union[str, unicode], value: Union[str, unicode]
|
|
68
|
+
) -> None: ...
|
|
69
|
+
|
|
70
|
+
class InetAddress(Object):
|
|
71
|
+
def getAddress(self) -> bytearray: ...
|
|
72
|
+
@staticmethod
|
|
73
|
+
def getAllByName(host: Union[str, unicode]) -> List[InetAddress]: ...
|
|
74
|
+
@staticmethod
|
|
75
|
+
def getByAddress(*args: Any) -> InetAddress: ...
|
|
76
|
+
@staticmethod
|
|
77
|
+
def getByName(host: Union[str, unicode]) -> InetAddress: ...
|
|
78
|
+
def getCanonicalHostName(self) -> Union[str, unicode]: ...
|
|
79
|
+
def getHostAddress(self) -> Union[str, unicode]: ...
|
|
80
|
+
def getHostName(self) -> Union[str, unicode]: ...
|
|
81
|
+
@staticmethod
|
|
82
|
+
def getLocalHost() -> InetAddress: ...
|
|
83
|
+
@staticmethod
|
|
84
|
+
def getLoopbackAddress() -> InetAddress: ...
|
|
85
|
+
def isAnyLocalAddress(self) -> bool: ...
|
|
86
|
+
def isLinkLocalAddress(self) -> bool: ...
|
|
87
|
+
def isLoopbackAddress(self) -> bool: ...
|
|
88
|
+
def isMCGlobal(self) -> bool: ...
|
|
89
|
+
def isMCLinkLocal(self) -> bool: ...
|
|
90
|
+
def isMCNodeLocal(self) -> bool: ...
|
|
91
|
+
def isMCOrgLocal(self) -> bool: ...
|
|
92
|
+
def isMCSiteLocal(self) -> bool: ...
|
|
93
|
+
def isMulticastAddress(self) -> bool: ...
|
|
94
|
+
def isReachable(self, *args: Any) -> bool: ...
|
|
95
|
+
def isSiteLocalAddress(self) -> bool: ...
|
|
96
|
+
|
|
97
|
+
class InetSocketAddress(SocketAddress):
|
|
98
|
+
def __init__(self, *args: Any) -> None: ...
|
|
99
|
+
@staticmethod
|
|
100
|
+
def createUnresolved(host: Union[str, unicode], port: int) -> InetSocketAddress: ...
|
|
101
|
+
def getAddress(self) -> InetAddress: ...
|
|
102
|
+
def getHostname(self) -> Union[str, unicode]: ...
|
|
103
|
+
def getHostString(self) -> Union[str, unicode]: ...
|
|
104
|
+
def getPort(self) -> int: ...
|
|
105
|
+
def isUnresolved(self) -> bool: ...
|
|
106
|
+
|
|
107
|
+
class Proxy(Object):
|
|
108
|
+
class Type(Enum):
|
|
109
|
+
DIRECT: Proxy.Type
|
|
110
|
+
HTTP: Proxy.Type
|
|
111
|
+
SOCKS: Proxy.Type
|
|
112
|
+
@staticmethod
|
|
113
|
+
def values() -> List[Proxy.Type]: ...
|
|
114
|
+
|
|
115
|
+
NO_PROXY: Proxy
|
|
116
|
+
def __init__(self, type_: Proxy.Type, sa: SocketAddress) -> None: ...
|
|
117
|
+
def address(self) -> SocketAddress: ...
|
|
118
|
+
def type(self) -> Proxy.Type: ...
|
|
119
|
+
|
|
120
|
+
class Socket(Object, Closeable):
|
|
121
|
+
def __init__(self, *args: Any) -> None: ...
|
|
122
|
+
def bind(self, bindpoint: SocketAddress) -> None: ...
|
|
123
|
+
def close(self) -> None: ...
|
|
124
|
+
def connect(
|
|
125
|
+
self, endpoint: SocketAddress, timeout: Optional[int] = ...
|
|
126
|
+
) -> None: ...
|
|
127
|
+
def getChannel(self) -> SocketChannel: ...
|
|
128
|
+
def getInetAddress(self) -> InetAddress: ...
|
|
129
|
+
def getInputStream(self) -> InputStream: ...
|
|
130
|
+
def getKeepAlive(self) -> bool: ...
|
|
131
|
+
def getLocalAddress(self) -> InetAddress: ...
|
|
132
|
+
def getLocalPort(self) -> int: ...
|
|
133
|
+
def getLocalSocketAddress(self) -> SocketAddress: ...
|
|
134
|
+
def getOOBInline(self) -> bool: ...
|
|
135
|
+
def getOption(self, name: SocketOption) -> Any: ...
|
|
136
|
+
def getOutputStream(self) -> OutputStream: ...
|
|
137
|
+
def getPort(self) -> int: ...
|
|
138
|
+
def getReceiveBufferSize(self) -> int: ...
|
|
139
|
+
def getRemoteSocketAddress(self) -> SocketAddress: ...
|
|
140
|
+
def getReuseAddress(self) -> bool: ...
|
|
141
|
+
def getSendBufferSize(self) -> int: ...
|
|
142
|
+
def getSoLinger(self) -> int: ...
|
|
143
|
+
def getSoTimeout(self) -> int: ...
|
|
144
|
+
def getTcpNoDelay(self) -> bool: ...
|
|
145
|
+
def getTrafficClass(self) -> int: ...
|
|
146
|
+
def isBound(self) -> bool: ...
|
|
147
|
+
def isClosed(self) -> bool: ...
|
|
148
|
+
def isConnected(self) -> bool: ...
|
|
149
|
+
def isInputShutdown(self) -> bool: ...
|
|
150
|
+
def isOutputShutdown(self) -> bool: ...
|
|
151
|
+
def sendUrgentData(self, data: int) -> None: ...
|
|
152
|
+
def setKeepAlive(self, on: bool) -> None: ...
|
|
153
|
+
def setOOBInline(self, on: bool) -> None: ...
|
|
154
|
+
def setOption(self, name: SocketOption, value: Any) -> Socket: ...
|
|
155
|
+
def setPerformancePreferences(
|
|
156
|
+
self, connectionTime: int, latency: int, bandwidth: int
|
|
157
|
+
) -> None: ...
|
|
158
|
+
def setReceiveBufferSize(self, size: int) -> None: ...
|
|
159
|
+
def setReuseAddress(self, on: bool) -> None: ...
|
|
160
|
+
def setSendBufferSize(self, size: int) -> None: ...
|
|
161
|
+
@staticmethod
|
|
162
|
+
def setSocketImplFactory(fac: SocketImplFactory) -> None: ...
|
|
163
|
+
def setSoLinger(self, on: bool, linger: int) -> None: ...
|
|
164
|
+
def setSoTimeout(self, timeout: int) -> None: ...
|
|
165
|
+
def setTcpNoDelay(self, on: bool) -> None: ...
|
|
166
|
+
def setTrafficClass(self, tc: int) -> None: ...
|
|
167
|
+
def shutdownInput(self) -> None: ...
|
|
168
|
+
def shutdownOutput(self) -> None: ...
|
|
169
|
+
def supportedOptions(self) -> Set[SocketOption]: ...
|
|
170
|
+
|
|
171
|
+
class SocketImpl(Object):
|
|
172
|
+
def __init__(self) -> None: ...
|
|
173
|
+
|
|
174
|
+
class URI(Object):
|
|
175
|
+
def __init__(self, *args: Any) -> None: ...
|
|
176
|
+
|
|
177
|
+
class UnknownHostException(IOException):
|
|
178
|
+
def __init__(self, message: Optional[str] = ...) -> None: ...
|
java/nio/__init__.pyi
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
from typing import Any, Optional, Union
|
|
2
|
+
|
|
3
|
+
from java.lang import Appendable, CharSequence, Object
|
|
4
|
+
|
|
5
|
+
class Buffer(Object):
|
|
6
|
+
def array(self) -> Object: ...
|
|
7
|
+
def arrayOffset(self) -> int: ...
|
|
8
|
+
def capacity(self) -> int: ...
|
|
9
|
+
def clear(self) -> Buffer: ...
|
|
10
|
+
def duplicate(self) -> Buffer: ...
|
|
11
|
+
def flip(self) -> Buffer: ...
|
|
12
|
+
def hasArray(self) -> bool: ...
|
|
13
|
+
def hasRemaining(self) -> bool: ...
|
|
14
|
+
def isDirect(self) -> bool: ...
|
|
15
|
+
def isReadOnly(self) -> bool: ...
|
|
16
|
+
def limit(self, nrewLimit: Optional[int] = ...) -> Union[Buffer, int]: ...
|
|
17
|
+
def mark(self) -> Buffer: ...
|
|
18
|
+
def position(self, newPosition: Optional[int] = ...) -> Union[Buffer, int]: ...
|
|
19
|
+
def remaining(self) -> int: ...
|
|
20
|
+
def reset(self) -> Buffer: ...
|
|
21
|
+
def rewind(self) -> Buffer: ...
|
|
22
|
+
def slice(self) -> Buffer: ...
|
|
23
|
+
|
|
24
|
+
class ByteBuffer(Buffer):
|
|
25
|
+
def alignedSlice(self, unitSize: int) -> ByteBuffer: ...
|
|
26
|
+
def alignmentOffset(self, index: int, unitSize: int) -> int: ...
|
|
27
|
+
@staticmethod
|
|
28
|
+
def allocate(capacity: int) -> ByteBuffer: ...
|
|
29
|
+
@staticmethod
|
|
30
|
+
def allocateDirect(capacity: int) -> ByteBuffer: ...
|
|
31
|
+
def array(self) -> Object: ...
|
|
32
|
+
def arrayOffset(self) -> int: ...
|
|
33
|
+
def asCharBuffer(self) -> CharBuffer: ...
|
|
34
|
+
def asDoubleBuffer(self) -> DoubleBuffer: ...
|
|
35
|
+
def asFloatBuffer(self) -> FloatBuffer: ...
|
|
36
|
+
def asIntBuffer(self) -> IntBuffer: ...
|
|
37
|
+
def asLongBuffer(self) -> LongBuffer: ...
|
|
38
|
+
def asReadOnlyBuffer(self) -> ByteBuffer: ...
|
|
39
|
+
def asShortBuffer(self) -> ShortBuffer: ...
|
|
40
|
+
def compact(self) -> ByteBuffer: ...
|
|
41
|
+
def compareTo(self, that: ByteBuffer) -> int: ...
|
|
42
|
+
def duplicate(self) -> Buffer: ...
|
|
43
|
+
def get(self, *args: Any) -> ByteBuffer: ...
|
|
44
|
+
def getChar(self, index: int = ...) -> str: ...
|
|
45
|
+
def getDouble(self, index: int = ...) -> float: ...
|
|
46
|
+
def getFloat(self, index: int = ...) -> float: ...
|
|
47
|
+
def getInt(self, index: int = ...) -> int: ...
|
|
48
|
+
def getLong(self, index: int = ...) -> long: ...
|
|
49
|
+
def getShort(self, index: int = ...) -> int: ...
|
|
50
|
+
def hasArray(self) -> bool: ...
|
|
51
|
+
def isDirect(self) -> bool: ...
|
|
52
|
+
def isReadOnly(self) -> bool: ...
|
|
53
|
+
def mismatch(self, that: ByteBuffer) -> int: ...
|
|
54
|
+
def order(self, bo: Optional[ByteOrder] = ...) -> ByteOrder: ...
|
|
55
|
+
def put(self, *args: Any) -> ByteBuffer: ...
|
|
56
|
+
def putChar(self, *args: Any) -> ByteBuffer: ...
|
|
57
|
+
def putDouble(self, *args: Any) -> ByteBuffer: ...
|
|
58
|
+
def putFloat(self, *args: Any) -> ByteBuffer: ...
|
|
59
|
+
def putInt(self, *args: Any) -> ByteBuffer: ...
|
|
60
|
+
def putLong(self, *args: Any) -> ByteBuffer: ...
|
|
61
|
+
def putShort(self, *args: Any) -> ByteBuffer: ...
|
|
62
|
+
def slice(self) -> ByteBuffer: ...
|
|
63
|
+
@staticmethod
|
|
64
|
+
def wrap(*arg: Any) -> ByteBuffer: ...
|
|
65
|
+
|
|
66
|
+
class ByteOrder(Object):
|
|
67
|
+
BIG_ENDIAN: ByteOrder
|
|
68
|
+
LITTLE_ENDIAN: ByteOrder
|
|
69
|
+
@staticmethod
|
|
70
|
+
def nativeOrder() -> ByteOrder: ...
|
|
71
|
+
|
|
72
|
+
class CharBuffer(Buffer, Appendable, CharSequence):
|
|
73
|
+
@staticmethod
|
|
74
|
+
def allocate(capacity: int) -> CharBuffer: ...
|
|
75
|
+
def append(
|
|
76
|
+
self, c_csq: Union[CharSequence, str], start: int = ..., end: int = ...
|
|
77
|
+
) -> CharBuffer: ...
|
|
78
|
+
def array(self) -> Object: ...
|
|
79
|
+
def arrayOffset(self) -> int: ...
|
|
80
|
+
def charAt(self, index: int) -> str: ...
|
|
81
|
+
def compact(self) -> CharBuffer: ...
|
|
82
|
+
def compareTo(self, that: CharBuffer) -> int: ...
|
|
83
|
+
def duplicate(self) -> CharBuffer: ...
|
|
84
|
+
def get(self, *args: Any) -> CharBuffer: ...
|
|
85
|
+
def hasArray(self) -> bool: ...
|
|
86
|
+
def isDirect(self) -> bool: ...
|
|
87
|
+
def isReadOnly(self) -> bool: ...
|
|
88
|
+
def length(self) -> int: ...
|
|
89
|
+
def mismatch(self, that: CharBuffer) -> int: ...
|
|
90
|
+
def order(self) -> ByteOrder: ...
|
|
91
|
+
def put(self, *args: Any) -> CharBuffer: ...
|
|
92
|
+
def read(self, target: CharBuffer) -> int: ...
|
|
93
|
+
def slice(self) -> CharBuffer: ...
|
|
94
|
+
def subSequence(self, start: int, end: int) -> CharSequence: ...
|
|
95
|
+
@staticmethod
|
|
96
|
+
def wrap(*args: Any) -> CharBuffer: ...
|
|
97
|
+
|
|
98
|
+
class DoubleBuffer(Buffer):
|
|
99
|
+
@staticmethod
|
|
100
|
+
def allocate(capacity: int) -> DoubleBuffer: ...
|
|
101
|
+
def array(self) -> Object: ...
|
|
102
|
+
def arrayOffset(self) -> int: ...
|
|
103
|
+
def compact(self) -> DoubleBuffer: ...
|
|
104
|
+
def compareTo(self, that: DoubleBuffer) -> int: ...
|
|
105
|
+
def duplicate(self) -> DoubleBuffer: ...
|
|
106
|
+
def get(self, *args: Any) -> DoubleBuffer: ...
|
|
107
|
+
def hasArray(self) -> bool: ...
|
|
108
|
+
def isDirect(self) -> bool: ...
|
|
109
|
+
def isReadOnly(self) -> bool: ...
|
|
110
|
+
def mismatch(self, that: DoubleBuffer) -> int: ...
|
|
111
|
+
def order(self) -> ByteOrder: ...
|
|
112
|
+
def put(self, *args: Any) -> DoubleBuffer: ...
|
|
113
|
+
def slice(self) -> DoubleBuffer: ...
|
|
114
|
+
@staticmethod
|
|
115
|
+
def wrap(*args: Any) -> DoubleBuffer: ...
|
|
116
|
+
|
|
117
|
+
class FloatBuffer(Buffer):
|
|
118
|
+
@staticmethod
|
|
119
|
+
def allocate(capacity: int) -> FloatBuffer: ...
|
|
120
|
+
def array(self) -> Object: ...
|
|
121
|
+
def arrayOffset(self) -> int: ...
|
|
122
|
+
def compact(self) -> FloatBuffer: ...
|
|
123
|
+
def compareTo(self, that: FloatBuffer) -> int: ...
|
|
124
|
+
def duplicate(self) -> FloatBuffer: ...
|
|
125
|
+
def get(self, *args: Any) -> FloatBuffer: ...
|
|
126
|
+
def hasArray(self) -> bool: ...
|
|
127
|
+
def isDirect(self) -> bool: ...
|
|
128
|
+
def isReadOnly(self) -> bool: ...
|
|
129
|
+
def mismatch(self, that: FloatBuffer) -> int: ...
|
|
130
|
+
def order(self) -> ByteOrder: ...
|
|
131
|
+
def put(self, *args: Any) -> FloatBuffer: ...
|
|
132
|
+
def slice(self) -> FloatBuffer: ...
|
|
133
|
+
@staticmethod
|
|
134
|
+
def wrap(*args: Any) -> FloatBuffer: ...
|
|
135
|
+
|
|
136
|
+
class IntBuffer(Buffer):
|
|
137
|
+
@staticmethod
|
|
138
|
+
def allocate(capacity: int) -> IntBuffer: ...
|
|
139
|
+
def array(self) -> Object: ...
|
|
140
|
+
def arrayOffset(self) -> int: ...
|
|
141
|
+
def compact(self) -> IntBuffer: ...
|
|
142
|
+
def compareTo(self, that: IntBuffer) -> int: ...
|
|
143
|
+
def duplicate(self) -> IntBuffer: ...
|
|
144
|
+
def get(self, *args: Any) -> IntBuffer: ...
|
|
145
|
+
def hasArray(self) -> bool: ...
|
|
146
|
+
def isDirect(self) -> bool: ...
|
|
147
|
+
def isReadOnly(self) -> bool: ...
|
|
148
|
+
def mismatch(self, that: IntBuffer) -> int: ...
|
|
149
|
+
def order(self) -> ByteOrder: ...
|
|
150
|
+
def put(self, *args: Any) -> IntBuffer: ...
|
|
151
|
+
def slice(self) -> IntBuffer: ...
|
|
152
|
+
@staticmethod
|
|
153
|
+
def wrap(*args: Any) -> IntBuffer: ...
|
|
154
|
+
|
|
155
|
+
class LongBuffer(Buffer):
|
|
156
|
+
@staticmethod
|
|
157
|
+
def allocate(capacity: int) -> LongBuffer: ...
|
|
158
|
+
def array(self) -> Object: ...
|
|
159
|
+
def arrayOffset(self) -> int: ...
|
|
160
|
+
def compact(self) -> LongBuffer: ...
|
|
161
|
+
def compareTo(self, that: LongBuffer) -> int: ...
|
|
162
|
+
def duplicate(self) -> LongBuffer: ...
|
|
163
|
+
def get(self, *args: Any) -> LongBuffer: ...
|
|
164
|
+
def hasArray(self) -> bool: ...
|
|
165
|
+
def isDirect(self) -> bool: ...
|
|
166
|
+
def isReadOnly(self) -> bool: ...
|
|
167
|
+
def mismatch(self, that: LongBuffer) -> int: ...
|
|
168
|
+
def order(self) -> ByteOrder: ...
|
|
169
|
+
def put(self, *args: Any) -> LongBuffer: ...
|
|
170
|
+
def slice(self) -> LongBuffer: ...
|
|
171
|
+
@staticmethod
|
|
172
|
+
def wrap(*args: Any) -> LongBuffer: ...
|
|
173
|
+
|
|
174
|
+
class ShortBuffer(Buffer):
|
|
175
|
+
@staticmethod
|
|
176
|
+
def allocate(capacity: int) -> ShortBuffer: ...
|
|
177
|
+
def array(self) -> Object: ...
|
|
178
|
+
def arrayOffset(self) -> int: ...
|
|
179
|
+
def compact(self) -> ShortBuffer: ...
|
|
180
|
+
def compareTo(self, that: ShortBuffer) -> int: ...
|
|
181
|
+
def duplicate(self) -> ShortBuffer: ...
|
|
182
|
+
def get(self, *args: Any) -> ShortBuffer: ...
|
|
183
|
+
def hasArray(self) -> bool: ...
|
|
184
|
+
def isDirect(self) -> bool: ...
|
|
185
|
+
def isReadOnly(self) -> bool: ...
|
|
186
|
+
def mismatch(self, that: ShortBuffer) -> int: ...
|
|
187
|
+
def order(self) -> ByteOrder: ...
|
|
188
|
+
def put(self, *args: Any) -> ShortBuffer: ...
|
|
189
|
+
def slice(self) -> ShortBuffer: ...
|
|
190
|
+
@staticmethod
|
|
191
|
+
def wrap(*args: Any) -> ShortBuffer: ...
|
|
192
|
+
|
|
193
|
+
class MappedByteBuffer(ByteBuffer):
|
|
194
|
+
def force(self) -> MappedByteBuffer: ...
|
|
195
|
+
def isLoaded(self) -> bool: ...
|
|
196
|
+
def load(self) -> MappedByteBuffer: ...
|