DCL 4.0
Loading...
Searching...
No Matches
FileReader.h
Go to the documentation of this file.
1#ifndef __DCL_FILE_READER_H__
2#define __DCL_FILE_READER_H__ 20110205
3
4#ifndef __DCL_FILE_INPUT_STREAM_H__
6#endif
7#ifndef __DCL_INPUT_STREAM_READER_H__
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
23class DCLCAPI FileReader : public InputStreamReader
24{
25 DECLARE_CLASSINFO(FileReader)
26public:
34 FileReader(
35 const String& _path,
38 : InputStreamReader(new FileInputStream(_path), _pDecoder)
39 {
40 }
41
49 FileReader(
50 File& __noclose__ _file,
53 : InputStreamReader(new FileInputStream(_file), _pDecoder)
54 {
55 }
56
64 FileReader(
65 File::HandleType __noclose__ _handle,
68 : InputStreamReader(new FileInputStream(_handle), _pDecoder)
69 {
70 }
71};
72
73__DCL_END_NAMESPACE
74
75#endif // __DCL_FILE_READER_H__
#define NULL
Definition Config.h:340
#define __destroy__
Definition Config.h:363
#define DCLCAPI
Definition Config.h:100
#define __noclose__
Definition Config.h:360
#define __DCL_THROWS1(e)
Definition Config.h:167
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
Definition File.h:38
InputStreamReader(InputStream &__noclose__ _input, CharsetDecoder &_decoder)