Class NSFileHandle

    • Constructor Detail

      • NSFileHandle

        protected NSFileHandle​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSFileHandle allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • fileHandleForReadingAtPath

        public static NSFileHandle fileHandleForReadingAtPath​(@NotNull
                                                              @NotNull java.lang.String path)
      • fileHandleForReadingFromURLError

        public static NSFileHandle fileHandleForReadingFromURLError​(@NotNull
                                                                    @NotNull NSURL url,
                                                                    @Nullable
                                                                    @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 4.0
      • fileHandleForUpdatingAtPath

        public static NSFileHandle fileHandleForUpdatingAtPath​(@NotNull
                                                               @NotNull java.lang.String path)
      • fileHandleForUpdatingURLError

        public static NSFileHandle fileHandleForUpdatingURLError​(@NotNull
                                                                 @NotNull NSURL url,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 4.0
      • fileHandleForWritingAtPath

        public static NSFileHandle fileHandleForWritingAtPath​(@NotNull
                                                              @NotNull java.lang.String path)
      • fileHandleForWritingToURLError

        public static NSFileHandle fileHandleForWritingToURLError​(@NotNull
                                                                  @NotNull NSURL url,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 4.0
      • fileHandleWithNullDevice

        @NotNull
        public static @NotNull NSFileHandle fileHandleWithNullDevice()
      • fileHandleWithStandardError

        @NotNull
        public static @NotNull NSFileHandle fileHandleWithStandardError()
      • fileHandleWithStandardInput

        @NotNull
        public static @NotNull NSFileHandle fileHandleWithStandardInput()
      • fileHandleWithStandardOutput

        @NotNull
        public static @NotNull NSFileHandle fileHandleWithStandardOutput()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • acceptConnectionInBackgroundAndNotify

        public void acceptConnectionInBackgroundAndNotify()
      • acceptConnectionInBackgroundAndNotifyForModes

        public void acceptConnectionInBackgroundAndNotifyForModes​(@Nullable
                                                                  @Nullable NSArray<java.lang.String> modes)
      • availableData

        @NotNull
        public @NotNull NSData availableData()
      • closeFile

        @Deprecated
        public void closeFile()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • fileDescriptor

        public int fileDescriptor()
      • initWithFileDescriptor

        public NSFileHandle initWithFileDescriptor​(int fd)
      • initWithFileDescriptorCloseOnDealloc

        public NSFileHandle initWithFileDescriptorCloseOnDealloc​(int fd,
                                                                 boolean closeopt)
      • offsetInFile

        @Deprecated
        public long offsetInFile()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • readDataOfLength

        @NotNull
        @Deprecated
        public @NotNull NSData readDataOfLength​(long length)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • readDataToEndOfFile

        @NotNull
        @Deprecated
        public @NotNull NSData readDataToEndOfFile()
        Deprecated.
        The API below may throw exceptions and will be deprecated in a future version of the OS. Use their replacements instead. API-Since: 2.0 Deprecated-Since: 100000.0
      • readInBackgroundAndNotify

        public void readInBackgroundAndNotify()
      • readInBackgroundAndNotifyForModes

        public void readInBackgroundAndNotifyForModes​(@Nullable
                                                      @Nullable NSArray<java.lang.String> modes)
      • readToEndOfFileInBackgroundAndNotify

        public void readToEndOfFileInBackgroundAndNotify()
      • readToEndOfFileInBackgroundAndNotifyForModes

        public void readToEndOfFileInBackgroundAndNotifyForModes​(@Nullable
                                                                 @Nullable NSArray<java.lang.String> modes)
      • seekToEndOfFile

        @Deprecated
        public long seekToEndOfFile()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • seekToFileOffset

        @Deprecated
        public void seekToFileOffset​(long offset)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • synchronizeFile

        @Deprecated
        public void synchronizeFile()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • truncateFileAtOffset

        @Deprecated
        public void truncateFileAtOffset​(long offset)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • waitForDataInBackgroundAndNotify

        public void waitForDataInBackgroundAndNotify()
      • waitForDataInBackgroundAndNotifyForModes

        public void waitForDataInBackgroundAndNotifyForModes​(@Nullable
                                                             @Nullable NSArray<java.lang.String> modes)
      • writeData

        @Deprecated
        public void writeData​(@NotNull
                              @NotNull NSData data)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • closeAndReturnError

        public boolean closeAndReturnError​(@Nullable
                                           @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • getOffsetError

        public boolean getOffsetError​(@NotNull
                                      @NotNull org.moe.natj.general.ptr.LongPtr offsetInFile,
                                      @Nullable
                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • readDataToEndOfFileAndReturnError

        @Nullable
        public @Nullable NSData readDataToEndOfFileAndReturnError​(@Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • readDataUpToLengthError

        @Nullable
        public @Nullable NSData readDataUpToLengthError​(long length,
                                                        @Nullable
                                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • seekToEndReturningOffsetError

        public boolean seekToEndReturningOffsetError​(@Nullable
                                                     @Nullable org.moe.natj.general.ptr.LongPtr offsetInFile,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • seekToOffsetError

        public boolean seekToOffsetError​(long offset,
                                         @Nullable
                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • synchronizeAndReturnError

        public boolean synchronizeAndReturnError​(@Nullable
                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • truncateAtOffsetError

        public boolean truncateAtOffsetError​(long offset,
                                             @Nullable
                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • writeDataError

        public boolean writeDataError​(@NotNull
                                      @NotNull NSData data,
                                      @Nullable
                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.