00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #import "OFObject.h"
00013
00014 @class OFString;
00015
00019 @interface OFStream: OFObject
00020 {
00021 char *cache;
00022 size_t cache_len;
00023 }
00024
00034 - (BOOL)atEndOfStream;
00035
00045 - (BOOL)atEndOfStreamWithoutCache;
00046
00059 - (size_t)readNBytes: (size_t)size
00060 intoBuffer: (char*)buf;
00061
00073 - (size_t)readNBytesWithoutCache: (size_t)size
00074 intoBuffer: (char*)buf;
00075
00082 - (OFString*)readLine;
00083
00091 - (OFString*)readLineWithEncoding: (enum of_string_encoding)encoding;
00092
00100 - (size_t)writeNBytes: (size_t)size
00101 fromBuffer: (const char*)buf;
00102
00109 - (size_t)writeString: (OFString*)str;
00110
00114 - close;
00115 @end