MTStream
|
+---MTFileStream
+(BOOL)checkFileStat:(NSString*)filepath
return TRUE if the indicated file is readable
+(BOOL)isFileCompressed:(NSString*)filepath
return TRUE if the indicated file is compressed
+(id)streamAppendToFile:(NSString*)path
create a stream from a file in append mode
+(id)streamFromFile:(NSString*)path
create a stream from a file in readonly mode
+(id)streamSafeAppendToFile:(NSString*)t_path
+(id)streamSafeFromFile:(NSString*)t_path
+(id)streamSafeToFile:(NSString*)t_path
+(id)streamToFile:(NSString*)path
create a stream from a file in writeonly mode
close this stream
-(char*)getsBuffer:(char*)buffer len:(int)len
read a line from stream up to len length
returns TRUE if stream is not at the end
-(int)readBuffer:(char*)buffer len:(int)len
read into buffer up to len length
-(NSData*)readLength:(unsigned int)len
read data from stream up to len length
-(NSData*)readLineLength:(unsigned int)len
read line up to len length
-(NSString*)readStringLineLength:(unsigned int)len
read line up to len length and return in string
-(int)writeBuffer:(char*)buffer len:(int)len
write buffer to stream
-(void)writeCString:(const char*)string
write a C string (/const char * /) to the stream
-(void)writeData:(NSData*)data
write data to stream
-(void)writeString:(NSString*)string
write a string to the stream