@@ -193,25 +193,28 @@ extension FileHandle {
193
193
internal static var _stdinFileHandle : FileHandle = {
194
194
return FileHandle ( fileDescriptor: STDIN_FILENO, closeOnDealloc: false )
195
195
} ( )
196
- public class func fileHandleWithStandardInput( ) -> FileHandle {
196
+
197
+ public class func standardInput( ) -> FileHandle {
197
198
return _stdinFileHandle
198
199
}
199
200
200
201
internal static var _stdoutFileHandle : FileHandle = {
201
202
return FileHandle ( fileDescriptor: STDOUT_FILENO, closeOnDealloc: false )
202
203
} ( )
203
- public class func fileHandleWithStandardOutput( ) -> FileHandle {
204
+
205
+ public class func standardOutput( ) -> FileHandle {
204
206
return _stdoutFileHandle
205
207
}
206
208
207
209
internal static var _stderrFileHandle : FileHandle = {
208
210
return FileHandle ( fileDescriptor: STDERR_FILENO, closeOnDealloc: false )
209
211
} ( )
210
- public class func fileHandleWithStandardError( ) -> FileHandle {
212
+
213
+ public class func standardError( ) -> FileHandle {
211
214
return _stderrFileHandle
212
215
}
213
216
214
- public class func fileHandleWithNullDevice ( ) -> FileHandle {
217
+ public class func nullDevice ( ) -> FileHandle {
215
218
NSUnimplemented ( )
216
219
}
217
220
@@ -239,17 +242,17 @@ extension FileHandle {
239
242
}
240
243
}
241
244
242
- public convenience init ( forReadingFromURL url: URL ) throws {
245
+ public convenience init ( forReadingFrom url: URL ) throws {
243
246
let fd = try FileHandle . _openFileDescriptorForURL ( url, flags: O_RDONLY, reading: true )
244
247
self . init ( fileDescriptor: fd, closeOnDealloc: true )
245
248
}
246
249
247
- public convenience init ( forWritingToURL url: URL ) throws {
250
+ public convenience init ( forWritingTo url: URL ) throws {
248
251
let fd = try FileHandle . _openFileDescriptorForURL ( url, flags: O_WRONLY, reading: false )
249
252
self . init ( fileDescriptor: fd, closeOnDealloc: true )
250
253
}
251
254
252
- public convenience init ( forUpdatingURL url: URL ) throws {
255
+ public convenience init ( forUpdating url: URL ) throws {
253
256
let fd = try FileHandle . _openFileDescriptorForURL ( url, flags: O_RDWR, reading: false )
254
257
self . init ( fileDescriptor: fd, closeOnDealloc: true )
255
258
}
0 commit comments