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,ObjCProtocol
public class NSFileHandle extends NSObject implements NSSecureCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSFileHandle.Notificationsstatic classNSFileHandle.NSFileHandlePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description NSFileHandle()NSFileHandle(int fd)NSFileHandle(int fd, boolean closeopt)NSFileHandle(NSCoder coder)protectedNSFileHandle(NSObject.Handle h, long handle)protectedNSFileHandle(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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
NSFileHandle
public NSFileHandle() -
NSFileHandle
-
NSFileHandle
-
NSFileHandle
public NSFileHandle(int fd, boolean closeopt) -
NSFileHandle
-
NSFileHandle
public NSFileHandle(int fd)
-
-
Method Details
-
getAvailableData
-
getStandardInput
-
getStandardOutput
-
getStandardError
-
getNullDevice
-
getReadabilityHandler
-
setReadabilityHandler
-
getWriteabilityHandler
-
setWriteabilityHandler
-
getFileDescriptor
public int getFileDescriptor() -
getOffsetInFile
Deprecated.Use getOffset:error: -
supportsSecureCoding
public static boolean supportsSecureCoding() -
readInBackgroundAndNotify
-
readToEndOfFileInBackgroundAndNotify
-
acceptConnectionInBackgroundAndNotify
-
waitForDataInBackgroundAndNotify
-
ReadCompletionNotification
-
ReadToEndOfFileCompletionNotification
-
ConnectionAcceptedNotification
-
DataAvailableNotification
-
NotificationDataItem
-
NotificationFileHandleItem
-
init
protected long init(int fd, boolean closeopt) -
init
-
readDataToEndOfFileEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
readDataUpToLengthEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
writeDataEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
getOffsetEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
seekToEndReturningOffsetEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
seekToOffsetEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
truncateAtOffsetEx
- Throws:
NSErrorException- Since:
- Available in iOS 13.0 and later.
-
synchronizeAndReturnError
- Since:
- Available in iOS 13.0 and later.
-
closeAndReturnError
- Since:
- Available in iOS 13.0 and later.
-
createForReading
-
createForWriting
-
createForUpdating
-
createForReading
- Throws:
NSErrorException
-
createForWriting
- Throws:
NSErrorException
-
createForUpdating
- Throws:
NSErrorException
-
readInBackgroundAndNotify
-
readInBackgroundAndNotify
public void readInBackgroundAndNotify() -
readToEndOfFileInBackgroundAndNotify
-
readToEndOfFileInBackgroundAndNotify
public void readToEndOfFileInBackgroundAndNotify() -
acceptConnectionInBackgroundAndNotify
-
acceptConnectionInBackgroundAndNotify
public void acceptConnectionInBackgroundAndNotify() -
waitForDataInBackgroundAndNotify
-
waitForDataInBackgroundAndNotify
public void waitForDataInBackgroundAndNotify() -
init
protected long init(int fd) -
readDataToEndOfFile
Deprecated.Use readDataToEndOfFileAndReturnError: -
readData
Deprecated.Use readDataUpToLength:error: -
writeData
Deprecated.Use writeData:error: -
seekToEndOfFile
Deprecated.Use seekToEndReturningOffset:error: -
seekToFileOffset
Deprecated.Use seekToOffset:error: -
truncateFile
Deprecated.Use truncateAtOffset:error: -
synchronizeFile
Deprecated.Use synchronizeAndReturnError: -
closeFile
Deprecated.Use closeAndReturnError: -
encode
-