Up 
        
        
        Authors 
        
          Derek Zhou (derekzhou@gmail.com 
          
           
         
        Date:  Generated at 2025-02-11 22:18:53 +0100
        Copyright:  (C) 2006 Free Software Foundation, Inc.
            
              
        
class_NSInputStream 
NSStream 
NSStream 
 
 
NSInputStream 
NSInputStream 
 
NSStream->NSInputStream 
 
 
 
        
          
            Declared in: Foundation/NSStream.h 
           
         
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
          NSInputStream is a subclass of NSStream that
          provides read-only stream functionality.
        
        
        
          
          
        
        
        
        + (id) 
inputStreamWithData:  (
NSData *)data;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSInputStream
            object for reading from data .
          
        
         
        
        + (id) 
inputStreamWithFileAtPath:  (
NSString *)path;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSInputStream
            object that reads data from the file at the
            specified path .
          
        
         
        
        + (id) 
inputStreamWithURL:  (
NSURL *)url;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSInputStream
            object that reads data from the specified URL.
          
        
         
        
        - (BOOL) 
getBuffer:  (uint8_t**)buffer
 length:  (
NSUInteger *)len;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns a pointer to the read buffer  in
            buffer  and, by reference, the number of
            bytes available in len .
          
        
         
        
        - (BOOL) 
hasBytesAvailable ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns YES if the receiver has bytes
            available to read. The receiver may also return
            YES if a read must be attempted in
            order to determine the availability of bytes.
          
        
         
        
        - (id) 
initWithData:  (
NSData *)data;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSInputStream object for
            reading from data .
          
        
         
        
        - (id) 
initWithFileAtPath:  (
NSString *)path;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSInputStream object for
            reading from the file at the specified
            path .
          
        
         
        
        - (id) 
initWithURL:  (
NSURL *)url;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSInputStream object for
            reading from the specified URL.
          
        
         
        
        - (
NSInteger ) 
read:  (uint8_t*)buffer
 maxLength:  (
NSUInteger )len;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Reads up to len  bytes into
            buffer , returning the actual number of
            bytes read.
          
        
         
              
        
class_NSOutputStream 
NSStream 
NSStream 
 
 
NSOutputStream 
NSOutputStream 
 
NSStream->NSOutputStream 
 
 
 
        
          
            Declared in: Foundation/NSStream.h 
           
         
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
          NSOutputStream is a subclass of NSStream that
          provides write-only stream functionality.
        
        
        
          
          
        
        
        
        + (id) 
outputStreamToBuffer:  (uint8_t*)buffer
 capacity:  (
NSUInteger )capacity;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSOutputStream
            object that can write to buffer , up to a
            maximum of capacity  bytes.
          
        
         
        
        + (id) 
outputStreamToFileAtPath:  (
NSString *)path
 append:  (BOOL)shouldAppend;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSOutputStream
            object for writing to the file specified by
            path .
          
        
         
        
        + (id) 
outputStreamToMemory ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns an initialized NSOutputStream
            object that will write stream data to memory.
          
        
         
        
        - (BOOL) 
hasSpaceAvailable ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns YES if the receiver can be
            written to, or if a write must be attempted in
            order to determine if space is available.
          
        
         
        
        - (id) 
initToBuffer:  (uint8_t*)buffer
 capacity:  (
NSUInteger )capacity;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSOutputStream object that
            can write to buffer , up to a maximum of
            capacity  bytes.
          
        
         
        
        - (id) 
initToFileAtPath:  (
NSString *)path
 append:  (BOOL)shouldAppend;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSOutputStream object for
            writing to the file specified by path .
            shouldAppend  is
            YES, newly written data will be
            appended to any existing file contents.
          
        
         
        
        - (id) 
initToMemory ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an initialized NSOutputStream object that
            will write to memory.
          
        
         
        
        - (
NSInteger ) 
write:  (const uint8_t*)buffer
 maxLength:  (
NSUInteger )len;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Writes the contents of buffer , up to a
            maximum of len  bytes, to the receiver.
          
        
         
              
        
class_NSStream 
NSObject 
NSObject 
 
 
NSStream 
NSStream 
 
NSObject->NSStream 
 
 
 
        
          
            Declared in: Foundation/NSStream.h 
           
         
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
          NSStream is an abstract class for objects
          representing streams.
        
        
        
          
          
        
        
        
        + (void) 
getStreamsToHost:  (
NSHost *)host
 port:  (
NSInteger )port
 inputStream:  (
NSInputStream **)inputStream
 outputStream:  (
NSOutputStream **)outputStream;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Creates and returns by reference an NSInputStream
            object and NSOutputStream object for a socket
            connection with the specified port  on
            host .
          
        
         
        
        - (void) 
close ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Closes the receiver. 
         
        
        - (id) 
delegate ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns the receiver's delegate.
          
        
         
        
        - (void) 
open ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Opens the receiving stream. 
         
        
        - (id) 
propertyForKey:  (
NSString *)key;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns the receiver's property for the specified
            key .
          
        
         
        
        - (void) 
removeFromRunLoop:  (
NSRunLoop *)aRunLoop
 forMode:  (
NSString *)mode;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Removes the receiver from the NSRunLoop specified
            by aRunLoop  running in the mode .
            mode  in which it has not been
            scheduled are quietly ignored.
          
        
         
        
        - (void) 
scheduleInRunLoop:  (
NSRunLoop *)aRunLoop
 forMode:  (
NSString *)mode;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Schedules the receiver on aRunLoop 
            using the specified mode . 
         
        
        - (void) 
setDelegate:  (id)delegate;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Sets the receiver's delegate .
          
        
         
        
        - (BOOL) 
setProperty:  (id)property
 forKey:  (
NSString *)key;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Sets the value of the property  specified by
            key  to property , returns
            YES if the key-value pair are accepted
            by the receiver.
          
        
         
        
        - (
NSError *) 
streamError ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns an NSError object representing the stream
            error, or nil if no error has been
            encountered.
          
        
         
        
        - (
NSStreamStatus ) 
streamStatus ;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Returns the receiver's status.
          
        
         
              
        
        
          
            Declared in: Foundation/NSStream.h 
           
         
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
          Informal protocol for delegates of instance of the
          
NSStream 
            class.
        
        
          
          
        
        
        
        - (void) 
stream:  (
NSStream *)sStream
 handleEvent:  (
NSStreamEvent )anEvent;
        
Availability:  MacOS-X 10.4.0, Base 1.2.0
        
          
            Description forthcoming. 
          
        
         
              
        
        
          
            Declared in: Foundation/NSStream.h 
           
         
        
          
            Conforms to: NSObject  
         
        
Availability:  MacOS-X 10.7.0, Base 1.2.0
        
          
          Description forthcoming. 
        
        
        
          
          
        
        
        
        - (void) 
stream:  (
NSStream *)sStream
 handleEvent:  (
NSStreamEvent )anEvent;
        
Availability:  MacOS-X 10.7.0, Base 1.2.0
        
          
            Description forthcoming. 
          
        
         
        
        Up