Class MTFileStream

Inherits from:
MTStream
Declared in:
../libmoltalk/MTFileStream.oh

Class Hierarchy

    MTStream
      |
      +---MTFileStream

Last modified:
26-May-2006 (../libmoltalk/MTFileStream.m)

Instance Variables

protected FILE *fstream

Method Index

Methods

+(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

-(void)close

close this stream

-(char*)getsBuffer:(char*)buffer len:(int)len

read a line from stream up to len length

-(BOOL)ok

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


generated 07-Jun-2006 by ObjcDoc 3.0.0