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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        public static 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,
                                                                                org.moe.natj.general.ptr.Ptr<NSInputStream> inputStream,
                                                                                org.moe.natj.general.ptr.Ptr<NSOutputStream> outputStream)
      • getStreamsToHostWithNamePortInputStreamOutputStream

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

        public static long hash_static()
      • inputStreamWithFileAtPath

        public static NSInputStream inputStreamWithFileAtPath​(java.lang.String path)
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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​(org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.BytePtr> buffer,
                                       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​(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​(java.lang.String path)
      • readMaxLength

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