-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathFile.swift
More file actions
166 lines (114 loc) · 3.32 KB
/
File.swift
File metadata and controls
166 lines (114 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import CSwiftJavaJNI
@JavaClass("java.io.File")
open class File: JavaObject {
@JavaMethod
@_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: String, _ arg1: String, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: File?, _ arg1: String, environment: JNIEnvironment? = nil)
@JavaMethod
open func getName() -> String
@JavaMethod
open override func equals(_ arg0: JavaObject?) -> Bool
@JavaMethod
open func length() -> Int64
@JavaMethod
open override func toString() -> String
@JavaMethod
open override func hashCode() -> Int32
@JavaMethod
open func isHidden() -> Bool
@JavaMethod
open func compareTo(_ arg0: File?) -> Int32
@JavaMethod
open func compareTo(_ arg0: JavaObject?) -> Int32
@JavaMethod
open func list() -> [String]
@JavaMethod
open func isAbsolute() -> Bool
@JavaMethod
open func getParent() -> String
@JavaMethod
open func delete() -> Bool
@JavaMethod
open func setReadOnly() -> Bool
@JavaMethod
open func canRead() -> Bool
@JavaMethod
open func getPath() -> String
@JavaMethod
open func getAbsolutePath() -> String
@JavaMethod
open func exists() -> Bool
@JavaMethod
open func createNewFile() throws -> Bool
@JavaMethod
open func renameTo(_ arg0: File?) -> Bool
@JavaMethod
open func isDirectory() -> Bool
@JavaMethod
open func getCanonicalPath() throws -> String
@JavaMethod
open func getAbsoluteFile() -> File!
@JavaMethod
open func mkdir() -> Bool
@JavaMethod
open func getCanonicalFile() throws -> File!
@JavaMethod
open func getParentFile() -> File!
@JavaMethod
open func mkdirs() -> Bool
@JavaMethod
open func setWritable(_ arg0: Bool) -> Bool
@JavaMethod
open func setWritable(_ arg0: Bool, _ arg1: Bool) -> Bool
@JavaMethod
open func setReadable(_ arg0: Bool, _ arg1: Bool) -> Bool
@JavaMethod
open func setReadable(_ arg0: Bool) -> Bool
@JavaMethod
open func setExecutable(_ arg0: Bool, _ arg1: Bool) -> Bool
@JavaMethod
open func setExecutable(_ arg0: Bool) -> Bool
@JavaMethod
open func canWrite() -> Bool
@JavaMethod
open func isFile() -> Bool
@JavaMethod
open func lastModified() -> Int64
@JavaMethod
open func deleteOnExit()
@JavaMethod
open func listFiles() -> [File?]
@JavaMethod
open func setLastModified(_ arg0: Int64) -> Bool
@JavaMethod
open func canExecute() -> Bool
@JavaMethod
open func getTotalSpace() -> Int64
@JavaMethod
open func getFreeSpace() -> Int64
@JavaMethod
open func getUsableSpace() -> Int64
@JavaMethod
open func toPath() -> Path!
}
extension JavaClass<File> {
@JavaStaticField(isFinal: true)
public var separatorChar: UInt16
@JavaStaticField(isFinal: true)
public var separator: String
@JavaStaticField(isFinal: true)
public var pathSeparatorChar: UInt16
@JavaStaticField(isFinal: true)
public var pathSeparator: String
@JavaStaticMethod
public func listRoots() -> [File?]
@JavaStaticMethod
public func createTempFile(_ arg0: String, _ arg1: String) throws -> File!
@JavaStaticMethod
public func createTempFile(_ arg0: String, _ arg1: String, _ arg2: File?) throws -> File!
}