2 * Copyright 2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 * Fredrik Modéen <fredrik@modeen.se>
9 #ifndef FILE_READ_WRITE_H
10 #define FILE_READ_WRITE_H
19 FileReadWrite(BFile
* file
,
20 int32 sourceEncoding
= -1);
21 // -1 means "default" encoding
22 bool Next(BString
& string
);
23 status_t
Write(const BString
& contents
) const;
24 void SetEncoding(int32 sourceEncoding
);
25 uint32
GetEncoding() const;
29 int32 fSourceEncoding
;
31 off_t fPositionInBuffer
;
35 #endif //FILE_READ_WRITE_H