Class NSOutputStream

  • All Implemented Interfaces:
    NSObject

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

      • NSOutputStream

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSOutputStream 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()
      • 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)
      • outputStreamToBufferCapacity

        public static NSOutputStream outputStreamToBufferCapacity​(@NotNull
                                                                  @NotNull org.moe.natj.general.ptr.BytePtr buffer,
                                                                  long capacity)
      • outputStreamToFileAtPathAppend

        public static NSOutputStream outputStreamToFileAtPathAppend​(@NotNull
                                                                    @NotNull java.lang.String path,
                                                                    boolean shouldAppend)
      • outputStreamToMemory

        public static NSOutputStream outputStreamToMemory()
      • outputStreamWithURLAppend

        public static NSOutputStream outputStreamWithURLAppend​(@NotNull
                                                               @NotNull NSURL url,
                                                               boolean shouldAppend)
        API-Since: 4.0
      • 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()
      • hasSpaceAvailable

        public boolean hasSpaceAvailable()
        writes the bytes from the specified buffer to the stream up to len bytes. Returns the number of bytes actually written.
      • initToBufferCapacity

        public NSOutputStream initToBufferCapacity​(@NotNull
                                                   @NotNull org.moe.natj.general.ptr.BytePtr buffer,
                                                   long capacity)
      • initToFileAtPathAppend

        public NSOutputStream initToFileAtPathAppend​(@NotNull
                                                     @NotNull java.lang.String path,
                                                     boolean shouldAppend)
      • initToMemory

        public NSOutputStream initToMemory()
        returns YES if the stream can be written to or if it is impossible to tell without actually doing the write.
      • initWithURLAppend

        public NSOutputStream initWithURLAppend​(@NotNull
                                                @NotNull NSURL url,
                                                boolean shouldAppend)
        API-Since: 4.0
      • writeMaxLength

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

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.