00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #import "OFObject.h"
00013 #import "OFString.h"
00014
00018 @interface OFStream: OFObject
00019 {
00020 char *cache;
00021 size_t cache_len;
00022 }
00023
00033 - (BOOL)atEndOfStream;
00034
00044 - (BOOL)atEndOfStreamWithoutCache;
00045
00058 - (size_t)readNBytes: (size_t)size
00059 intoBuffer: (char*)buf;
00060
00072 - (size_t)readNBytesWithoutCache: (size_t)size
00073 intoBuffer: (char*)buf;
00074
00081 - (OFString*)readLine;
00082
00090 - (OFString*)readLineWithEncoding: (enum of_string_encoding)encoding;
00091
00099 - (size_t)writeNBytes: (size_t)size
00100 fromBuffer: (const char*)buf;
00101
00108 - (size_t)writeString: (OFString*)str;
00109
00113 - close;
00114 @end