Class NSInputStream

  • All Implemented Interfaces:
    NSObject

    public class NSInputStream
    extends NSStream
    NSInputStream is an abstract class representing the base functionality of a read stream. Subclassers are required to implement these methods.
    • Constructor Detail

      • NSInputStream

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSInputStream 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()
      • getBoundStreamsWithBufferSizeInputStreamOutputStream

        public static void getBoundStreamsWithBufferSizeInputStreamOutputStream​(long bufferSize,
                                                                                @Nullable
                                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSInputStream> inputStream,
                                                                                @Nullable
                                                                                @Nullable org.moe.natj.general.ptr.Ptr<NSOutputStream> outputStream)
      • getStreamsToHostWithNamePortInputStreamOutputStream

        @Deprecated
        public static void getStreamsToHostWithNamePortInputStreamOutputStream​(@NotNull
                                                                               @NotNull java.lang.String hostname,
                                                                               long port,
                                                                               @Nullable
                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSInputStream> inputStream,
                                                                               @Nullable
                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSOutputStream> outputStream)
        Deprecated.
      • hash_static

        public static long hash_static()
      • inputStreamWithData

        public static NSInputStream inputStreamWithData​(@NotNull
                                                        @NotNull NSData data)
      • inputStreamWithFileAtPath

        public static NSInputStream inputStreamWithFileAtPath​(@NotNull
                                                              @NotNull java.lang.String path)
      • inputStreamWithURL

        public static NSInputStream inputStreamWithURL​(@NotNull
                                                       @NotNull NSURL url)
        API-Since: 4.0
      • 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()
      • version_static

        public static long version_static()
      • getBufferLength

        public boolean getBufferLength​(@NotNull
                                       @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> buffer,
                                       @NotNull
                                       @NotNull org.moe.natj.general.ptr.NUIntPtr len)
        reads up to length bytes into the supplied buffer, which must be at least of size len. Returns the actual number of bytes read.
      • hasBytesAvailable

        public boolean hasBytesAvailable()
        returns in O(1) a pointer to the buffer in 'buffer' and by reference in 'len' how many bytes are available. This buffer is only valid until the next stream operation. Subclassers may return NO for this if it is not appropriate for the stream type. This may return NO if the buffer is not available.
      • initWithData

        public NSInputStream initWithData​(@NotNull
                                          @NotNull NSData data)
        returns YES if the stream has bytes available or if it impossible to tell without actually doing the read.
      • initWithFileAtPath

        public NSInputStream initWithFileAtPath​(@NotNull
                                                @NotNull java.lang.String path)
      • initWithURL

        public NSInputStream initWithURL​(@NotNull
                                         @NotNull NSURL url)
        API-Since: 4.0
      • readMaxLength

        public long readMaxLength​(@NotNull
                                  @NotNull org.moe.natj.general.ptr.BytePtr buffer,
                                  long len)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.