Package org.robovm.apple.foundation
Class NSFileHandle
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSFileHandle
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSFileHandle extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSFileHandle.Notifications
static class
NSFileHandle.NSFileHandlePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSFileHandle()
NSFileHandle(int fd)
NSFileHandle(int fd, boolean closeopt)
NSFileHandle(NSCoder coder)
protected
NSFileHandle(NSObject.Handle h, long handle)
protected
NSFileHandle(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSFileHandle
public NSFileHandle()
-
NSFileHandle
protected NSFileHandle(NSObject.Handle h, long handle)
-
NSFileHandle
protected NSFileHandle(NSObject.SkipInit skipInit)
-
NSFileHandle
public NSFileHandle(int fd, boolean closeopt)
-
NSFileHandle
public NSFileHandle(NSCoder coder)
-
NSFileHandle
public NSFileHandle(int fd)
-
-
Method Detail
-
getAvailableData
public NSData getAvailableData()
-
getOffsetInFile
public long getOffsetInFile()
-
getStandardInput
public static NSFileHandle getStandardInput()
-
getStandardOutput
public static NSFileHandle getStandardOutput()
-
getStandardError
public static NSFileHandle getStandardError()
-
getNullDevice
public static NSFileHandle getNullDevice()
-
getReadabilityHandler
public org.robovm.objc.block.VoidBlock1<NSFileHandle> getReadabilityHandler()
- Since:
- Available in iOS 5.0 and later.
-
setReadabilityHandler
public void setReadabilityHandler(org.robovm.objc.block.VoidBlock1<NSFileHandle> v)
- Since:
- Available in iOS 5.0 and later.
-
getWriteabilityHandler
public org.robovm.objc.block.VoidBlock1<NSFileHandle> getWriteabilityHandler()
- Since:
- Available in iOS 5.0 and later.
-
setWriteabilityHandler
public void setWriteabilityHandler(org.robovm.objc.block.VoidBlock1<NSFileHandle> v)
- Since:
- Available in iOS 5.0 and later.
-
getFileDescriptor
public int getFileDescriptor()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
readInBackgroundAndNotify
public void readInBackgroundAndNotify(NSRunLoopMode... modes)
-
readToEndOfFileInBackgroundAndNotify
public void readToEndOfFileInBackgroundAndNotify(NSRunLoopMode... modes)
-
acceptConnectionInBackgroundAndNotify
public void acceptConnectionInBackgroundAndNotify(NSRunLoopMode... modes)
-
waitForDataInBackgroundAndNotify
public void waitForDataInBackgroundAndNotify(NSRunLoopMode... modes)
-
ReadCompletionNotification
public static NSString ReadCompletionNotification()
-
ReadToEndOfFileCompletionNotification
public static NSString ReadToEndOfFileCompletionNotification()
-
ConnectionAcceptedNotification
public static NSString ConnectionAcceptedNotification()
-
DataAvailableNotification
public static NSString DataAvailableNotification()
-
NotificationDataItem
protected static NSString NotificationDataItem()
-
NotificationFileHandleItem
protected static NSString NotificationFileHandleItem()
-
readDataToEndOfFile
public NSData readDataToEndOfFile()
-
readData
public NSData readData(long length)
-
writeData
public void writeData(NSData data)
-
seekToEndOfFile
public long seekToEndOfFile()
-
seekToFileOffset
public void seekToFileOffset(long offset)
-
truncateFile
public void truncateFile(long offset)
-
synchronizeFile
public void synchronizeFile()
-
closeFile
public void closeFile()
-
init
protected long init(int fd, boolean closeopt)
-
init
protected long init(NSCoder coder)
-
createForReading
public static NSFileHandle createForReading(java.lang.String path)
-
createForWriting
public static NSFileHandle createForWriting(java.lang.String path)
-
createForUpdating
public static NSFileHandle createForUpdating(java.lang.String path)
-
createForReading
public static NSFileHandle createForReading(NSURL url) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 4.0 and later.
-
createForWriting
public static NSFileHandle createForWriting(NSURL url) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 4.0 and later.
-
createForUpdating
public static NSFileHandle createForUpdating(NSURL url) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 4.0 and later.
-
readInBackgroundAndNotify
public void readInBackgroundAndNotify(java.util.List<java.lang.String> modes)
-
readInBackgroundAndNotify
public void readInBackgroundAndNotify()
-
readToEndOfFileInBackgroundAndNotify
public void readToEndOfFileInBackgroundAndNotify(java.util.List<java.lang.String> modes)
-
readToEndOfFileInBackgroundAndNotify
public void readToEndOfFileInBackgroundAndNotify()
-
acceptConnectionInBackgroundAndNotify
public void acceptConnectionInBackgroundAndNotify(java.util.List<java.lang.String> modes)
-
acceptConnectionInBackgroundAndNotify
public void acceptConnectionInBackgroundAndNotify()
-
waitForDataInBackgroundAndNotify
public void waitForDataInBackgroundAndNotify(java.util.List<java.lang.String> modes)
-
waitForDataInBackgroundAndNotify
public void waitForDataInBackgroundAndNotify()
-
init
protected long init(int fd)
-
-