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__
5
#include <
dcl/FileInputStream.h
>
6
#endif
7
#ifndef __DCL_INPUT_STREAM_READER_H__
8
#include <
dcl/InputStreamReader.h
>
9
#endif
10
11
__DCL_BEGIN_NAMESPACE
12
23
class
DCLCAPI
FileReader :
public
InputStreamReader
24
{
25
DECLARE_CLASSINFO
(FileReader)
26
public
:
34
FileReader(
35
const
String& _path,
36
CharsetDecoder
*
__destroy__
_pDecoder =
NULL
37
)
__DCL_THROWS1
(
IOException
*)
38
:
InputStreamReader
(
new
FileInputStream
(_path), _pDecoder)
39
{
40
}
41
49
FileReader(
50
File
&
__noclose__
_file,
51
CharsetDecoder
*
__destroy__
_pDecoder =
NULL
52
)
__DCL_THROWS1
(
IOException
*)
53
:
InputStreamReader
(
new
FileInputStream
(_file), _pDecoder)
54
{
55
}
56
64
FileReader(
65
File::HandleType
__noclose__
_handle,
66
CharsetDecoder
*
__destroy__
_pDecoder =
NULL
67
)
__DCL_THROWS1
(
IOException
*)
68
:
InputStreamReader
(
new
FileInputStream
(_handle), _pDecoder)
69
{
70
}
71
};
72
73
__DCL_END_NAMESPACE
74
75
#endif
// __DCL_FILE_READER_H__
NULL
#define NULL
Definition
Config.h:340
__destroy__
#define __destroy__
Definition
Config.h:363
DCLCAPI
#define DCLCAPI
Definition
Config.h:100
__noclose__
#define __noclose__
Definition
Config.h:360
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:167
FileInputStream.h
InputStreamReader.h
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:210
CharsetDecoder
Definition
Charset.h:107
File
Definition
File.h:38
FileInputStream
Definition
FileInputStream.h:23
IOException
Definition
Exception.h:93
InputStreamReader::InputStreamReader
InputStreamReader(InputStream &__noclose__ _input, CharsetDecoder &_decoder)
Definition
InputStreamReader.cpp:47
include
dcl
FileReader.h
Generated by
1.14.0