You are here

initWithStream

-(id) initWithStream - initializes an input stream.

initWithStream:inputStream:mimeType

-(id) initWithStream:(NSInputStream *)inputStream mimeType:(NSString *)mimeType - Initializes a content stream with an input stream and a string indicating the mime type of the content of the stream.

Parameters

(NSInputStream *) inputStream
The input stream to use to initialize the content stream.
(NSString *) mimeType
The mime type of the content stream.

Returns

(id) - a SkyVaultContentStream instance.

Example




        

initWithStream:inputStream:mimeType:length

-(id) initWithStream:(NSInputStream *)inputStream mimeType:(NSString *)mimeType length:(unsigned long long) length - Initializes a content stream with an input stream and a string indicating the mime type of the content of the stream. The length of the stream, if know, is also specified.

Parameters

(NSInputStream *) inputStream
The input stream to use to initialize the content stream.
(NSString *) mimeType
The mime type of the content stream.
(unsigned long long) length
The length of the stream. Can be set to 0 if not known.

Returns

(id) - a SkyVaultContentStream instance.

Example