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
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
from typing import Any, Optional, Set, Union
|
|
2
|
+
|
|
3
|
+
from java.lang import AutoCloseable, Object
|
|
4
|
+
from java.nio import ByteBuffer, MappedByteBuffer
|
|
5
|
+
from java.util.function import Consumer
|
|
6
|
+
|
|
7
|
+
class Channel(AutoCloseable):
|
|
8
|
+
def close(self) -> None: ...
|
|
9
|
+
def isOpen(self) -> bool: ...
|
|
10
|
+
|
|
11
|
+
class ReadableByteChannel(Channel):
|
|
12
|
+
def read(self, dst: ByteBuffer) -> int: ...
|
|
13
|
+
|
|
14
|
+
class WriteableByteChannel(Channel):
|
|
15
|
+
def write(self, src: ByteBuffer) -> int: ...
|
|
16
|
+
|
|
17
|
+
class FileChannel(Object, Channel):
|
|
18
|
+
class MapMode(Object):
|
|
19
|
+
PRIVATE: FileChannel.MapMode
|
|
20
|
+
READ_ONLY: FileChannel.MapMode
|
|
21
|
+
READ_WRITE: FileChannel.MapMode
|
|
22
|
+
|
|
23
|
+
def force(self, metaData: bool) -> None: ...
|
|
24
|
+
def lock(self) -> FileLock: ...
|
|
25
|
+
def map(
|
|
26
|
+
self, mode: FileChannel.MapMode, position: long, size: long
|
|
27
|
+
) -> MappedByteBuffer: ...
|
|
28
|
+
@staticmethod
|
|
29
|
+
def open(*args: Any) -> FileChannel: ...
|
|
30
|
+
def position(
|
|
31
|
+
self, newPosition: Optional[long] = ...
|
|
32
|
+
) -> Union[FileChannel, long]: ...
|
|
33
|
+
def read(self, *args: Any) -> Union[int, long]: ...
|
|
34
|
+
def size(self) -> long: ...
|
|
35
|
+
def transferFrom(
|
|
36
|
+
self, src: ReadableByteChannel, position: long, count: long
|
|
37
|
+
) -> long: ...
|
|
38
|
+
def transferTo(
|
|
39
|
+
self, position: long, count: long, target: WriteableByteChannel
|
|
40
|
+
) -> long: ...
|
|
41
|
+
def truncate(self, size: long) -> FileChannel: ...
|
|
42
|
+
def tryLock(
|
|
43
|
+
self,
|
|
44
|
+
position: Optional[long] = ...,
|
|
45
|
+
size: Optional[long] = ...,
|
|
46
|
+
shared: Optional[bool] = ...,
|
|
47
|
+
) -> FileLock: ...
|
|
48
|
+
def write(self, *args: Any) -> Union[int, long]: ...
|
|
49
|
+
|
|
50
|
+
class FileLock(Object, AutoCloseable):
|
|
51
|
+
def acquiredBy(self) -> Channel: ...
|
|
52
|
+
def channel(self) -> FileChannel: ...
|
|
53
|
+
def close(self) -> None: ...
|
|
54
|
+
def isShared(self) -> bool: ...
|
|
55
|
+
def isValid(self) -> bool: ...
|
|
56
|
+
def overlaps(self, position: long, size: long) -> bool: ...
|
|
57
|
+
def position(self) -> long: ...
|
|
58
|
+
def release(self) -> None: ...
|
|
59
|
+
def size(self) -> long: ...
|
|
60
|
+
|
|
61
|
+
class SeekableByteChannel(ReadableByteChannel, WriteableByteChannel):
|
|
62
|
+
def position(
|
|
63
|
+
self, newPosition: Optional[long] = ...
|
|
64
|
+
) -> Union[long, SeekableByteChannel]: ...
|
|
65
|
+
def size(self) -> long: ...
|
|
66
|
+
def truncate(self, size: long) -> SeekableByteChannel: ...
|
|
67
|
+
|
|
68
|
+
class SelectableChannel(Object, AutoCloseable):
|
|
69
|
+
def close(self) -> None: ...
|
|
70
|
+
def blockingLock(self) -> Object: ...
|
|
71
|
+
def configureBlocking(self) -> SelectableChannel: ...
|
|
72
|
+
def isBlocking(self) -> bool: ...
|
|
73
|
+
def isRegistered(self) -> bool: ...
|
|
74
|
+
def keyFor(self, sel: Selector) -> SelectionKey: ...
|
|
75
|
+
def provider(self) -> Object: ...
|
|
76
|
+
def register(
|
|
77
|
+
self, sel: Selector, ops: int, att: Optional[Object] = ...
|
|
78
|
+
) -> SelectionKey: ...
|
|
79
|
+
def validOps(self) -> int: ...
|
|
80
|
+
|
|
81
|
+
class SelectionKey(Object):
|
|
82
|
+
OP_ACCEPT: int
|
|
83
|
+
OP_CONNECT: int
|
|
84
|
+
OP_READ: int
|
|
85
|
+
OP_WRITE: int
|
|
86
|
+
def attach(self, ob: Object) -> Object: ...
|
|
87
|
+
def attachment(self) -> Object: ...
|
|
88
|
+
def cancel(self) -> None: ...
|
|
89
|
+
def channel(self) -> SelectableChannel: ...
|
|
90
|
+
def interestOps(self, ops: Optional[int] = ...) -> Union[int, SelectionKey]: ...
|
|
91
|
+
def interestOpsAnd(self, ops: int) -> int: ...
|
|
92
|
+
def interestOpsOr(self, ops: int) -> int: ...
|
|
93
|
+
def isAcceptable(self) -> bool: ...
|
|
94
|
+
def isConnectable(self) -> bool: ...
|
|
95
|
+
def isReadable(self) -> bool: ...
|
|
96
|
+
def isValid(self) -> bool: ...
|
|
97
|
+
def isWriteable(self) -> bool: ...
|
|
98
|
+
def readyOps(self) -> int: ...
|
|
99
|
+
def selector(self) -> Selector: ...
|
|
100
|
+
|
|
101
|
+
class Selector(Object, AutoCloseable):
|
|
102
|
+
def close(self) -> None: ...
|
|
103
|
+
def isOpen(self) -> bool: ...
|
|
104
|
+
def keys(self) -> Set[SelectionKey]: ...
|
|
105
|
+
@staticmethod
|
|
106
|
+
def open() -> Selector: ...
|
|
107
|
+
def provider(self) -> Object: ...
|
|
108
|
+
def select(self, *args: Any) -> int: ...
|
|
109
|
+
def selectedKeys(self) -> Set[SelectionKey]: ...
|
|
110
|
+
def selectNow(self, action: Optional[Consumer] = ...) -> int: ...
|
|
111
|
+
def wakeup(self) -> Selector: ...
|
|
112
|
+
|
|
113
|
+
class SocketChannel(SelectableChannel):
|
|
114
|
+
def bind(self, local: Any) -> SocketChannel: ...
|
|
115
|
+
def connect(self, remote: Any) -> bool: ...
|
|
116
|
+
def finishConnect(self) -> bool: ...
|
|
117
|
+
def getLocalAddress(self) -> Any: ...
|
|
118
|
+
def getRemoteAddress(self) -> Any: ...
|
|
119
|
+
def isConnected(self) -> bool: ...
|
|
120
|
+
def isConnectionPending(self) -> bool: ...
|
|
121
|
+
def open(self, remote: Optional[Any] = ...) -> SocketChannel: ...
|
|
122
|
+
def read(self, *args: Any) -> Union[int, long]: ...
|
|
123
|
+
def setOption(self, name: Any, value: Any) -> SocketChannel: ...
|
|
124
|
+
def shutdownInput(self) -> SocketChannel: ...
|
|
125
|
+
def shutdownOutput(self) -> SocketChannel: ...
|
|
126
|
+
def socket(self) -> Any: ...
|
|
127
|
+
def write(self, *args: Any) -> Union[int, long]: ...
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from typing import Dict, Optional, Set, Union
|
|
2
|
+
|
|
3
|
+
from java.lang import Object
|
|
4
|
+
from java.nio import ByteBuffer, CharBuffer
|
|
5
|
+
from java.util import Locale
|
|
6
|
+
|
|
7
|
+
class Charset(Object):
|
|
8
|
+
def aliases(self) -> Set[Union[str, unicode]]: ...
|
|
9
|
+
@staticmethod
|
|
10
|
+
def availableCharsets() -> Dict[Union[str, unicode], Charset]: ...
|
|
11
|
+
def canEncode(self) -> bool: ...
|
|
12
|
+
def compareTo(self, that: Charset) -> int: ...
|
|
13
|
+
def contains(self, cs: Charset) -> bool: ...
|
|
14
|
+
def decode(self, bb: ByteBuffer) -> CharBuffer: ...
|
|
15
|
+
@staticmethod
|
|
16
|
+
def defaultCharset() -> Charset: ...
|
|
17
|
+
def displayName(self, locale: Optional[Locale]) -> Union[str, unicode]: ...
|
|
18
|
+
def encode(self, arg: Union[Charset, str, unicode]) -> ByteBuffer: ...
|
|
19
|
+
@staticmethod
|
|
20
|
+
def forName(charsetName: Union[str, unicode]) -> Charset: ...
|
|
21
|
+
def isRegistered(self) -> bool: ...
|
|
22
|
+
@staticmethod
|
|
23
|
+
def isSupported(charsetName: Union[str, unicode]) -> bool: ...
|
|
24
|
+
def name(self) -> Union[str, unicode]: ...
|
|
25
|
+
def newDecoder(self) -> CharsetDecoder: ...
|
|
26
|
+
def newEncoder(self) -> CharsetEncoder: ...
|
|
27
|
+
|
|
28
|
+
class CharsetDecoder(Object):
|
|
29
|
+
def charset(self) -> Charset: ...
|
|
30
|
+
def decode(
|
|
31
|
+
self,
|
|
32
|
+
in_: ByteBuffer,
|
|
33
|
+
out: Optional[CharBuffer] = ...,
|
|
34
|
+
endOfInput: Optional[bool] = ...,
|
|
35
|
+
) -> CharBuffer: ...
|
|
36
|
+
|
|
37
|
+
class CharsetEncoder(Object):
|
|
38
|
+
def charset(self) -> Charset: ...
|
|
39
|
+
def encode(
|
|
40
|
+
self,
|
|
41
|
+
in_: ByteBuffer,
|
|
42
|
+
out: Optional[ByteBuffer] = ...,
|
|
43
|
+
endOfInput: Optional[bool] = ...,
|
|
44
|
+
) -> Union[ByteBuffer, CoderResult]: ...
|
|
45
|
+
|
|
46
|
+
class CoderResult(Object):
|
|
47
|
+
OVERFLOW: CoderResult
|
|
48
|
+
UNDERFLOW: CoderResult
|
|
49
|
+
def isError(self) -> bool: ...
|
|
50
|
+
def isMalformed(self) -> bool: ...
|
|
51
|
+
def isOverflow(self) -> bool: ...
|
|
52
|
+
def isUnderFlow(self) -> bool: ...
|
|
53
|
+
def isUnmappable(self) -> bool: ...
|
|
54
|
+
def length(self) -> int: ...
|
|
55
|
+
@staticmethod
|
|
56
|
+
def malformedForLength(length: int) -> CoderResult: ...
|
|
57
|
+
def throwException(self) -> None: ...
|
|
58
|
+
@staticmethod
|
|
59
|
+
def unmappableForLength(length: int) -> CoderResult: ...
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
from typing import Any, Iterator, List, Optional, Set, Union
|
|
2
|
+
|
|
3
|
+
from java.io import (
|
|
4
|
+
BufferedReader,
|
|
5
|
+
BufferedWriter,
|
|
6
|
+
InputStream,
|
|
7
|
+
IOException,
|
|
8
|
+
OutputStream,
|
|
9
|
+
)
|
|
10
|
+
from java.lang import (
|
|
11
|
+
AutoCloseable,
|
|
12
|
+
CharSequence,
|
|
13
|
+
Class,
|
|
14
|
+
Enum,
|
|
15
|
+
IllegalArgumentException,
|
|
16
|
+
IllegalStateException,
|
|
17
|
+
Object,
|
|
18
|
+
RuntimeException,
|
|
19
|
+
Throwable,
|
|
20
|
+
UnsupportedOperationException,
|
|
21
|
+
)
|
|
22
|
+
from java.nio.channels import SeekableByteChannel
|
|
23
|
+
from java.nio.charset import Charset
|
|
24
|
+
from java.nio.file.attribute import (
|
|
25
|
+
BasicFileAttributes,
|
|
26
|
+
FileAttribute,
|
|
27
|
+
FileAttributeView,
|
|
28
|
+
FileStoreAttributeView,
|
|
29
|
+
FileTime,
|
|
30
|
+
PosixFilePermission,
|
|
31
|
+
UserPrincipal,
|
|
32
|
+
)
|
|
33
|
+
from java.util import ConcurrentModificationException
|
|
34
|
+
from java.util.function import BiPredicate
|
|
35
|
+
from java.util.stream import Stream
|
|
36
|
+
|
|
37
|
+
class CopyOption: ...
|
|
38
|
+
|
|
39
|
+
class DirectoryStream(AutoCloseable):
|
|
40
|
+
def close(self) -> None: ...
|
|
41
|
+
|
|
42
|
+
class OpenOption: ...
|
|
43
|
+
|
|
44
|
+
class Watchable:
|
|
45
|
+
def register(self, *args: Any) -> WatchKey: ...
|
|
46
|
+
|
|
47
|
+
class FileStore(Object):
|
|
48
|
+
def getAttribute(self, attribute: Union[str, unicode]) -> Object: ...
|
|
49
|
+
def getBlockSize(self) -> long: ...
|
|
50
|
+
def getFileStoreAttributeView(self, type: Class) -> FileStoreAttributeView: ...
|
|
51
|
+
def getTotalSpace(self) -> long: ...
|
|
52
|
+
def getUnallocatedSpace(self) -> long: ...
|
|
53
|
+
def getUsableSpace(self) -> long: ...
|
|
54
|
+
def isReadOnly(self) -> bool: ...
|
|
55
|
+
def name(self) -> Union[str, unicode]: ...
|
|
56
|
+
def supportsFileAttributeView(self, type: Class) -> bool: ...
|
|
57
|
+
def type(self) -> Union[str, unicode]: ...
|
|
58
|
+
|
|
59
|
+
class ClosedDirectoryStreamException(IllegalStateException):
|
|
60
|
+
def __init__(self) -> None: ...
|
|
61
|
+
|
|
62
|
+
class ClosedFileSystemException(IllegalStateException):
|
|
63
|
+
def __init__(self) -> None: ...
|
|
64
|
+
|
|
65
|
+
class DirectoryIteratorException(ConcurrentModificationException):
|
|
66
|
+
def __init__(self, cause: Throwable) -> None: ...
|
|
67
|
+
|
|
68
|
+
class FileSystemAlreadyExistsException(RuntimeException):
|
|
69
|
+
def __init__(self, message: Optional[str] = ...) -> None: ...
|
|
70
|
+
|
|
71
|
+
class FileSystemException(IOException):
|
|
72
|
+
def __init__(
|
|
73
|
+
self,
|
|
74
|
+
file: Union[str, unicode],
|
|
75
|
+
other: Union[str, unicode, None] = ...,
|
|
76
|
+
reason: Union[str, unicode, None] = ...,
|
|
77
|
+
) -> None: ...
|
|
78
|
+
def getFile(self) -> Union[str, unicode]: ...
|
|
79
|
+
def getOtherFile(self) -> Union[str, unicode, None]: ...
|
|
80
|
+
def getReason(self) -> Union[str, unicode, None]: ...
|
|
81
|
+
|
|
82
|
+
class AccessDeniedException(FileSystemException):
|
|
83
|
+
def __init__(
|
|
84
|
+
self,
|
|
85
|
+
file: Union[str, unicode],
|
|
86
|
+
other: Union[str, unicode, None] = ...,
|
|
87
|
+
reason: Union[str, unicode, None] = ...,
|
|
88
|
+
) -> None: ...
|
|
89
|
+
|
|
90
|
+
class AtomicMoveNotSupportedException(FileSystemException):
|
|
91
|
+
def __init__(
|
|
92
|
+
self,
|
|
93
|
+
source: Union[str, unicode],
|
|
94
|
+
target: Union[str, unicode],
|
|
95
|
+
reason: Union[str, unicode],
|
|
96
|
+
) -> None: ...
|
|
97
|
+
|
|
98
|
+
class DirectoryNotEmptyException(FileSystemException):
|
|
99
|
+
def __init__(self, dir_: Union[str, unicode]) -> None: ...
|
|
100
|
+
|
|
101
|
+
class FileAlreadyExistsException(FileSystemException):
|
|
102
|
+
def __init__(
|
|
103
|
+
self,
|
|
104
|
+
file: Union[str, unicode],
|
|
105
|
+
other: Union[str, unicode, None] = ...,
|
|
106
|
+
reason: Union[str, unicode, None] = ...,
|
|
107
|
+
) -> None: ...
|
|
108
|
+
|
|
109
|
+
class FileSystemLoopException(FileSystemException):
|
|
110
|
+
def __init__(self, file: Union[str, unicode]) -> None: ...
|
|
111
|
+
|
|
112
|
+
class FileSystemNotFoundException(RuntimeException):
|
|
113
|
+
def __init__(self, message: Optional[str] = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
class NoSuchFileException(FileSystemException):
|
|
116
|
+
def __init__(
|
|
117
|
+
self,
|
|
118
|
+
file: Union[str, unicode],
|
|
119
|
+
other: Union[str, unicode, None] = ...,
|
|
120
|
+
reason: Union[str, unicode, None] = ...,
|
|
121
|
+
) -> None: ...
|
|
122
|
+
|
|
123
|
+
class NotDirectoryException(FileSystemException):
|
|
124
|
+
def __init__(self, file: Union[str, unicode]) -> None: ...
|
|
125
|
+
|
|
126
|
+
class NotLinkException(FileSystemException):
|
|
127
|
+
def __init__(
|
|
128
|
+
self,
|
|
129
|
+
file: Union[str, unicode],
|
|
130
|
+
other: Union[str, unicode, None] = ...,
|
|
131
|
+
reason: Union[str, unicode, None] = ...,
|
|
132
|
+
) -> None: ...
|
|
133
|
+
|
|
134
|
+
class FileVisitOption(Enum):
|
|
135
|
+
FOLLOW_LINKS: FileVisitOption
|
|
136
|
+
@staticmethod
|
|
137
|
+
def values() -> List[FileVisitOption]: ...
|
|
138
|
+
|
|
139
|
+
class Files(Object):
|
|
140
|
+
@staticmethod
|
|
141
|
+
def copy(*args: Any) -> Union[long, Path]: ...
|
|
142
|
+
@staticmethod
|
|
143
|
+
def createDirectories(dir: Path, *attrs: FileAttribute) -> Path: ...
|
|
144
|
+
@staticmethod
|
|
145
|
+
def createDirectory(dir: Path, *attrs: FileAttribute) -> Path: ...
|
|
146
|
+
@staticmethod
|
|
147
|
+
def createFile(path: Path, *attrs: FileAttribute) -> Path: ...
|
|
148
|
+
@staticmethod
|
|
149
|
+
def createLink(link: Path, existing: Path) -> Path: ...
|
|
150
|
+
@staticmethod
|
|
151
|
+
def createSymbolicLink(link: Path, target: Path, *attrs: FileAttribute) -> Path: ...
|
|
152
|
+
@staticmethod
|
|
153
|
+
def createTempDirectory(*args: Any) -> Path: ...
|
|
154
|
+
@staticmethod
|
|
155
|
+
def createTempFile(*args: Any) -> Path: ...
|
|
156
|
+
@staticmethod
|
|
157
|
+
def delete(path: Path) -> None: ...
|
|
158
|
+
@staticmethod
|
|
159
|
+
def deleteIfExists(path: Path) -> bool: ...
|
|
160
|
+
@staticmethod
|
|
161
|
+
def exists(path: Path, *options: LinkOption) -> bool: ...
|
|
162
|
+
@staticmethod
|
|
163
|
+
def find(
|
|
164
|
+
start: Path, maxDepth: int, matcher: BiPredicate, *options: FileVisitOption
|
|
165
|
+
) -> Stream: ...
|
|
166
|
+
@staticmethod
|
|
167
|
+
def getAttribute(
|
|
168
|
+
path: Path, attribute: Union[str, unicode], *options: LinkOption
|
|
169
|
+
) -> Object: ...
|
|
170
|
+
@staticmethod
|
|
171
|
+
def getFileAttributeView(
|
|
172
|
+
path: Path, type: Class, *options: LinkOption
|
|
173
|
+
) -> FileAttributeView: ...
|
|
174
|
+
@staticmethod
|
|
175
|
+
def getFileStore(path: Path) -> FileStore: ...
|
|
176
|
+
@staticmethod
|
|
177
|
+
def getLastModifiedTime(path: Path, *options: LinkOption) -> FileTime: ...
|
|
178
|
+
@staticmethod
|
|
179
|
+
def getOwner(path: Path, *options: LinkOption) -> UserPrincipal: ...
|
|
180
|
+
@staticmethod
|
|
181
|
+
def getPosixFilePermissions(
|
|
182
|
+
path: Path, *options: LinkOption
|
|
183
|
+
) -> Set[PosixFilePermission]: ...
|
|
184
|
+
@staticmethod
|
|
185
|
+
def isDirectory(path: Path, *options: LinkOption) -> bool: ...
|
|
186
|
+
@staticmethod
|
|
187
|
+
def isExecutable(path: Path) -> bool: ...
|
|
188
|
+
@staticmethod
|
|
189
|
+
def isHidden(path: Path) -> bool: ...
|
|
190
|
+
@staticmethod
|
|
191
|
+
def isReadable(path: Path) -> bool: ...
|
|
192
|
+
@staticmethod
|
|
193
|
+
def isRegularFile(path: Path, *options: LinkOption) -> bool: ...
|
|
194
|
+
@staticmethod
|
|
195
|
+
def isSameFile(path: Path, path2: Path) -> bool: ...
|
|
196
|
+
@staticmethod
|
|
197
|
+
def isSymbolicLink(path: Path) -> bool: ...
|
|
198
|
+
@staticmethod
|
|
199
|
+
def isWritable(path: Path) -> bool: ...
|
|
200
|
+
@staticmethod
|
|
201
|
+
def lines(path: Path, cs: Optional[Charset] = ...) -> Stream: ...
|
|
202
|
+
@staticmethod
|
|
203
|
+
def list(path: Path) -> Stream: ...
|
|
204
|
+
@staticmethod
|
|
205
|
+
def move(source: Path, target: Path, *options: CopyOption) -> Path: ...
|
|
206
|
+
@staticmethod
|
|
207
|
+
def newBufferedReader(
|
|
208
|
+
path: Path, cs: Optional[Charset] = ...
|
|
209
|
+
) -> BufferedReader: ...
|
|
210
|
+
@staticmethod
|
|
211
|
+
def newBufferedWriter(path: Path, *args: Any) -> BufferedWriter: ...
|
|
212
|
+
@staticmethod
|
|
213
|
+
def newByteChannel(path: Path, *args: Any) -> SeekableByteChannel: ...
|
|
214
|
+
@staticmethod
|
|
215
|
+
def newDirectoryStream(dir: Path, *args: Any) -> DirectoryStream: ...
|
|
216
|
+
@staticmethod
|
|
217
|
+
def newInputStream(path: Path, *options: OpenOption) -> InputStream: ...
|
|
218
|
+
@staticmethod
|
|
219
|
+
def newOutputStream(path: Path, *options: OpenOption) -> OutputStream: ...
|
|
220
|
+
@staticmethod
|
|
221
|
+
def notExists(path: Path, *options: LinkOption) -> bool: ...
|
|
222
|
+
@staticmethod
|
|
223
|
+
def probeContentType(path: Path) -> Union[str, unicode]: ...
|
|
224
|
+
@staticmethod
|
|
225
|
+
def readAllBytes(path: Path) -> bytearray: ...
|
|
226
|
+
@staticmethod
|
|
227
|
+
def readAllLines(
|
|
228
|
+
path: Path, cs: Optional[Charset] = ...
|
|
229
|
+
) -> List[Union[str, unicode]]: ...
|
|
230
|
+
@staticmethod
|
|
231
|
+
def readAttributes(path: Path, *args: Any) -> BasicFileAttributes: ...
|
|
232
|
+
@staticmethod
|
|
233
|
+
def readString(path: Path, cs: Optional[Charset] = ...) -> Union[str, unicode]: ...
|
|
234
|
+
@staticmethod
|
|
235
|
+
def readSymbolicLink(link: Path) -> Path: ...
|
|
236
|
+
@staticmethod
|
|
237
|
+
def setAttribute(
|
|
238
|
+
path: Path, attribute: Union[str, unicode], value: Object, *options: LinkOption
|
|
239
|
+
) -> Path: ...
|
|
240
|
+
@staticmethod
|
|
241
|
+
def setLastModifiedTime(path: Path, time: FileTime) -> Path: ...
|
|
242
|
+
@staticmethod
|
|
243
|
+
def setOwner(path: Path, owner: UserPrincipal) -> Path: ...
|
|
244
|
+
@staticmethod
|
|
245
|
+
def setPosixFilePermissions(
|
|
246
|
+
path: Path, perms: Set[PosixFilePermission]
|
|
247
|
+
) -> Path: ...
|
|
248
|
+
@staticmethod
|
|
249
|
+
def size(path: Path) -> long: ...
|
|
250
|
+
@staticmethod
|
|
251
|
+
def walk(path: Path, *args: Any) -> Stream: ...
|
|
252
|
+
@staticmethod
|
|
253
|
+
def walkFileTree(path: Path, *args: Any) -> Path: ...
|
|
254
|
+
@staticmethod
|
|
255
|
+
def write(path: Path, *args: Any) -> Path: ...
|
|
256
|
+
@staticmethod
|
|
257
|
+
def writeString(path: Path, csq: CharSequence, *args: Any) -> Path: ...
|
|
258
|
+
|
|
259
|
+
class InvalidPathException(IllegalArgumentException):
|
|
260
|
+
def __init__(self, input: str, reason: str, index: Optional[int] = ...) -> None: ...
|
|
261
|
+
def getIndex(self) -> Optional[int]: ...
|
|
262
|
+
def getInput(self) -> Union[str, unicode]: ...
|
|
263
|
+
def getReason(self) -> Union[str, unicode]: ...
|
|
264
|
+
|
|
265
|
+
class LinkOption(Enum, CopyOption, OpenOption):
|
|
266
|
+
NOFOLLOW_LINKS: LinkOption
|
|
267
|
+
@staticmethod
|
|
268
|
+
def values() -> List[LinkOption]: ...
|
|
269
|
+
|
|
270
|
+
class Path(Watchable):
|
|
271
|
+
def compareTo(self, other: Path) -> int: ...
|
|
272
|
+
def endsWith(self, other: Union[str, unicode, Object, Path]) -> bool: ...
|
|
273
|
+
def equals(self, other: Object) -> bool: ...
|
|
274
|
+
def getFileName(self) -> Path: ...
|
|
275
|
+
def getName(self, index: int) -> Path: ...
|
|
276
|
+
def getNameCount(self) -> int: ...
|
|
277
|
+
def getParent(self) -> Path: ...
|
|
278
|
+
def getRoot(self) -> Path: ...
|
|
279
|
+
def hashCode(self) -> int: ...
|
|
280
|
+
def isAbsolute(self) -> bool: ...
|
|
281
|
+
def iterator(self) -> Iterator[Path]: ...
|
|
282
|
+
def normalize(self) -> Path: ...
|
|
283
|
+
@staticmethod
|
|
284
|
+
def of(*args: Any) -> Path: ...
|
|
285
|
+
def register(self, *args: Any) -> WatchKey: ...
|
|
286
|
+
def relativize(self, other: Path) -> Path: ...
|
|
287
|
+
def resolve(self, other: Union[Path, str, unicode]) -> Path: ...
|
|
288
|
+
def resolveSibling(self, other: Path) -> Path: ...
|
|
289
|
+
def startsWith(self, other: Path) -> bool: ...
|
|
290
|
+
def subpath(self, beginIndex: int, endIndex: int) -> Path: ...
|
|
291
|
+
def toAbsolutePath(self) -> Path: ...
|
|
292
|
+
def toFile(self) -> Any: ...
|
|
293
|
+
def toRealPath(self, *args: LinkOption) -> Path: ...
|
|
294
|
+
def toString(self) -> Union[str, unicode]: ...
|
|
295
|
+
def toUri(self) -> Any: ...
|
|
296
|
+
|
|
297
|
+
class Paths(Object):
|
|
298
|
+
@staticmethod
|
|
299
|
+
def get(*args: Any) -> Path: ...
|
|
300
|
+
|
|
301
|
+
class ReadOnlyFileSystemException(UnsupportedOperationException):
|
|
302
|
+
def __init__(self) -> None: ...
|
|
303
|
+
|
|
304
|
+
class StandardCopyOption(Enum, CopyOption, OpenOption):
|
|
305
|
+
ATOMIC_MOVE: StandardCopyOption
|
|
306
|
+
COPY_ATTRIBUTES: StandardCopyOption
|
|
307
|
+
REPLACE_EXISTING: StandardCopyOption
|
|
308
|
+
@staticmethod
|
|
309
|
+
def values() -> List[StandardCopyOption]: ...
|
|
310
|
+
|
|
311
|
+
class WatchEvent:
|
|
312
|
+
class Kind:
|
|
313
|
+
def name(self) -> Union[str, unicode]: ...
|
|
314
|
+
def type(self) -> Class: ...
|
|
315
|
+
|
|
316
|
+
class Modifier:
|
|
317
|
+
def name(self) -> Union[str, unicode]: ...
|
|
318
|
+
|
|
319
|
+
def context(self) -> Any: ...
|
|
320
|
+
def count(self) -> int: ...
|
|
321
|
+
def kind(self) -> WatchEvent.Kind: ...
|
|
322
|
+
|
|
323
|
+
class WatchKey:
|
|
324
|
+
def cancel(self) -> None: ...
|
|
325
|
+
def isValid(self) -> bool: ...
|
|
326
|
+
def pollEvents(self) -> List[WatchEvent]: ...
|
|
327
|
+
def reset(self) -> bool: ...
|
|
328
|
+
def watchable(self) -> Watchable: ...
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from typing import Any, List, Union
|
|
2
|
+
|
|
3
|
+
from java.lang import Enum, Object
|
|
4
|
+
from java.security import Principal
|
|
5
|
+
from java.time import Instant
|
|
6
|
+
from java.util.concurrent import TimeUnit
|
|
7
|
+
|
|
8
|
+
class AttributeView:
|
|
9
|
+
def name(self) -> Union[str, unicode]: ...
|
|
10
|
+
|
|
11
|
+
class BasicFileAttributes:
|
|
12
|
+
def creationTime(self) -> FileTime: ...
|
|
13
|
+
def fileKey(self) -> Object: ...
|
|
14
|
+
def isDirectory(self) -> bool: ...
|
|
15
|
+
def isOther(self) -> bool: ...
|
|
16
|
+
def isRegularFile(self) -> bool: ...
|
|
17
|
+
def isSymbolicLink(self) -> bool: ...
|
|
18
|
+
def lastAccessTime(self) -> FileTime: ...
|
|
19
|
+
def lastModifiedTime(self) -> FileTime: ...
|
|
20
|
+
def size(self) -> long: ...
|
|
21
|
+
|
|
22
|
+
class FileAttribute:
|
|
23
|
+
def name(self) -> Union[str, unicode]: ...
|
|
24
|
+
def value(self) -> Any: ...
|
|
25
|
+
|
|
26
|
+
class FileAttributeView(AttributeView):
|
|
27
|
+
def name(self) -> Union[str, unicode]: ...
|
|
28
|
+
|
|
29
|
+
class FileTime(Object):
|
|
30
|
+
def compareTo(self, other: FileTime) -> int: ...
|
|
31
|
+
@staticmethod
|
|
32
|
+
def fromMillis(value: long) -> FileTime: ...
|
|
33
|
+
def to(self, unit: TimeUnit) -> long: ...
|
|
34
|
+
def toInstant(self) -> Instant: ...
|
|
35
|
+
def toMillis(self) -> long: ...
|
|
36
|
+
|
|
37
|
+
class PosixFilePermission(Enum):
|
|
38
|
+
GROUP_EXECUTE: PosixFilePermission
|
|
39
|
+
GROUP_READ: PosixFilePermission
|
|
40
|
+
GROUP_WRITE: PosixFilePermission
|
|
41
|
+
OTHERS_EXECUTE: PosixFilePermission
|
|
42
|
+
OTHERS_READ: PosixFilePermission
|
|
43
|
+
OTHERS_WRITE: PosixFilePermission
|
|
44
|
+
OWNER_EXECUTE: PosixFilePermission
|
|
45
|
+
OWNER_READ: PosixFilePermission
|
|
46
|
+
OWNER_WRITE: PosixFilePermission
|
|
47
|
+
@staticmethod
|
|
48
|
+
def values() -> List[PosixFilePermission]: ...
|
|
49
|
+
|
|
50
|
+
class UserPrincipal(Principal):
|
|
51
|
+
def equals(self, another: Object) -> bool: ...
|
|
52
|
+
def getName(self) -> Union[str, unicode]: ...
|
|
53
|
+
def hashCode(self) -> int: ...
|
|
54
|
+
def toString(self) -> Union[str, unicode]: ...
|
|
55
|
+
|
|
56
|
+
class FileStoreAttributeView(AttributeView):
|
|
57
|
+
def name(self) -> Union[str, unicode]: ...
|
java/org/__init__.pyi
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
java/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
|
|
3
|
+
from java.lang import Object
|
|
4
|
+
from javax.security.auth import Subject
|
|
5
|
+
|
|
6
|
+
class Principal:
|
|
7
|
+
def equals(self, another: Object) -> bool: ...
|
|
8
|
+
def getName(self) -> Union[str, unicode]: ...
|
|
9
|
+
def hashCode(self) -> int: ...
|
|
10
|
+
def implies(self, subject: Subject) -> bool: ...
|
|
11
|
+
def toString(self) -> Union[str, unicode]: ...
|