public static Object create ( Delegate delegate , int bufferSize ) { if ( bufferSize < 1 ) { throw new IllegalArgumentException ( "Invalid buffer size: " + bufferSize ) ; } if ( delegate == null ) { throw new IllegalArgumentException ( "Delegate must not be null" ) ; } return nativeCreate ( delegate , bufferSize ) ; }
Creates a native NSInputStream that is piped to a NSOutpuStream which in turn requests data from the supplied delegate asynchronously .