source: branch/egtra-gdiplus/Classes/System/IO/File.ab@ 711

Last change on this file since 711 was 105, checked in by OverTaker, 18 years ago

index.ab追加とFileSystemInfoの細かい修整。

File size: 5.7 KB
Line 
1
2Enum FileAccess
3 Read
4 ReadWrite
5 Write
6End Enum
7
8Enum FileAttributes
9 Archive
10 Compressed
11 Device
12 Directory
13 Encrypted
14 Hidden
15 Normal
16 NotContentIndexed
17 Offline
18 ReadOnly
19 ReparsePoint
20 SparseFile
21 System
22 Temporary
23End Enum
24
25Enum FileMode
26 Append
27 Create
28 CreateNew
29 Open
30 OpenOrCreate
31 Truncate
32End Enum
33
34Enum FileShare
35 DeleteFile
36 None
37 Read
38 ReadWrite
39 Write
40End Enum
41
42Class File
43Public
44
45 Static Sub AppendAllText( path As String, contents As String )
46 ' TODO: 実装
47 End Sub
48
49/* Static Sub AppendAllText( path As String, contents As String, encoding As Encoding )
50 ' TODO: 実装
51 End Sub */
52
53 Static Function AppendText( path As String ) As StreamWriter
54 ' TODO: 実装
55 End Function
56
57 Static Sub Copy( sourceFileName As String, destFileName As String )
58 ' TODO: 実装
59 End Sub
60
61 Static Sub Copy( sourceFileName As String, destFileName As String, overwrite As Boolean )
62 ' TODO: 実装
63 End Sub
64
65 Static Function Create( path As String ) As FileStream
66 ' TODO: 実装
67 End Function
68
69 Static Function Create( path As String, bufferSize As Long ) As FileStream
70 ' TODO: 実装
71 End Function
72
73/* Static Function Create( path As String, bufferSize As Long, options As FileOptions ) As FileStream
74 ' TODO: 実装
75 End Function */
76
77/* Static Function Create( path As String, bufferSize As Long, options As FileOptions, fileSecurity As FileSecurity ) As FileStream
78 ' TODO: 実装
79 End Function */
80
81 Static Function CreateText( path As String ) As StreamWriter
82 ' TODO: 実装
83 End Function
84
85 Static Sub Decrypt( path As String )
86 ' TODO: 実装
87 End Sub
88
89 Static Sub DeleteFile( path As String )
90 ' TODO: 実装
91 End Sub
92
93 Static Sub Encrypt( path As String )
94 ' TODO: 実装
95 End Sub
96
97 Static Function Exists( path As String ) As Boolean
98 ' TODO: 実装
99 End Function
100
101/* Static Function GetAccessControl( path As String ) As FileSecurity
102 ' TODO: 実装
103 End Function */
104
105/* Static Function GetAccessControl( path As String, includeSections As AccessControlSections ) As FileSecurity
106 ' TODO: 実装
107 End Function */
108
109 Static Function GetAttributes( path As String ) As FileAttributes
110 ' TODO: 実装
111 End Function
112
113 Static Function GetCreationTime( path As String ) As DateTime
114 ' TODO: 実装
115 End Function
116
117 Static Function GetCreationTimeUtc( path As String ) As DateTime
118 ' TODO: 実装
119 End Function
120
121 Static Function GetLastAccessTime( path As String ) As DateTime
122 ' TODO: 実装
123 End Function
124
125 Static Function GetLastAccessTimeUtc( path As String ) As DateTime
126 ' TODO: 実装
127 End Function
128
129 Static Function GetLastWriteTime( path As String ) As DateTime
130 ' TODO: 実装
131 End Function
132
133 Static Function GetLastWriteTimeUtc( path As String ) As DateTime
134 ' TODO: 実装
135 End Function
136
137 Static Sub Move( sourceFileName As String, destFileName As String )
138 ' TODO: 実装
139 End Sub
140
141 Static Function Open( path As String, mode As FileMode ) As FileStream
142 ' TODO: 実装
143 End Function
144
145 Static Function Open( path As String, mode As FileMode, access As FileAccess ) As FileStream
146 ' TODO: 実装
147 End Function
148
149 Static Function Open( path As String, mode As FileMode, access As FileAccess, share As FileShare ) As FileStream
150 ' TODO: 実装
151 End Function
152
153 Static Function OpenRead( path As String ) As FileStream
154 ' TODO: 実装
155 End Function
156
157 Static Function OpenText( path As String ) As StreamReader
158 ' TODO: 実装
159 End Function
160
161 Static Function OpenWrite( path As String ) As FileStream
162 ' TODO: 実装
163 End Function
164
165 Static Function ReadAllBytes( path As String ) As *Byte
166 ' TODO: 実装
167 End Function
168
169/* Static Function ReadAllLines( path As String ) As Strings
170 ' TODO: 実装
171 End Function */
172
173/* Static Function ReadAllLines( path As String, encoding As Encoding ) As Strings
174 ' TODO: 実装
175 End Function */
176
177 Static Function ReadAllText( path As String ) As String
178 ' TODO: 実装
179 End Function
180
181/* Static Function ReadAllText( path As String, encoding As Encoding ) As String
182 ' TODO: 実装
183 End Function */
184
185 Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String )
186 ' TODO: 実装
187 End Sub
188
189 Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String, ignoreMetadataErrors As Boolean )
190 ' TODO: 実装
191 End Sub
192
193/* Static Sub SetAccessControl( path As String, fileSecurity As FileSecurity )
194 ' TODO: 実装
195 End Sub */
196
197 Static Sub SetAttributes( path As String, fileAttributes As FileAttributes )
198 ' TODO: 実装
199 End Sub
200
201 Static Sub SetCreationTime( path As String, creationTime As DateTime )
202 ' TODO: 実装
203 End Sub
204
205 Static Sub SetCreationTimeUtc( path As String, creationTime As DateTime )
206 ' TODO: 実装
207 End Sub
208
209 Static Sub SetLastAccessTime( path As String, lastAccessTime As DateTime )
210 ' TODO: 実装
211 End Sub
212
213 Static Sub SetLastAccessTimeUtc( path As String, lastAccessTimeUtc As DateTime )
214 ' TODO: 実装
215 End Sub
216
217 Static Sub SetLastWriteTime( path As String, lastWriteTime As DateTime )
218 ' TODO: 実装
219 End Sub
220
221 Static Sub SetLastWriteTimeUtc( path As String, lastWriteTimeUtc As DateTime )
222 ' TODO: 実装
223 End Sub
224
225 Static Sub WriteAllBytes( path As String, bytes As *Byte )
226 ' TODO: 実装
227 End Sub
228
229/* Static Sub WriteAllLines( path As String, contents As Strings )
230 ' TODO: 実装
231 End Sub */
232
233/* Static Sub WriteAllLines( path As String, contents As Strings, encoding As Enconding )
234 ' TODO: 実装
235 End Sub */
236
237 Static Sub WriteAllText( path As String, contents As String )
238 ' TODO: 実装
239 End Sub
240
241/* Static Sub WriteAllText( path As String, contents As String, encoding As Enconding )
242 ' TODO: 実装
243 End Sub */
244
245End Class
Note: See TracBrowser for help on using the repository browser.