DCL 4.0
Loading...
Searching...
No Matches
FileInputStream.h
Go to the documentation of this file.
1#ifndef __DCL_FILE_INPUT_STREAM_H__
2#define __DCL_FILE_INPUT_STREAM_H__ 20071009
3
4#ifndef __DCL_INPUT_STREAM_H__
5#include <dcl/InputStream.h>
6#endif
7#ifndef __DCL_FILE_H__
8#include <dcl/File.h>
9#endif
10
11__DCL_BEGIN_NAMESPACE
12
22class DCLCAPI FileInputStream : public InputStream
23{
24 DECLARE_CLASSINFO(FileInputStream)
25public:
29 virtual String toString() const;
30
37 FileInputStream(const String& _path)
39
40#ifdef _MSC_VER
41 FileInputStream(const wchar_t* _path)
43#endif
44
49 FileInputStream(File& __noclose__ _file)
51
56 FileInputStream(File::HandleType __noclose__ _handle)
58
62 void open(const String& _path)
64
69 virtual ~FileInputStream();
70
74 virtual void close()
76
81 virtual size_t available()
83#if 0
84 virtual size_t peek(void* p, size_t n)
86#endif
87 /*
88 * 스트림으로부터 데이터를 읽는다.
89 * @param _buf
90 * 버퍼
91 * @param _n
92 * 버퍼의 크기가 _n바이트
93 * @return
94 * 읽은 바이트의 수이다. 0이면 EOF이다.
95 */
96 virtual size_t read(void* _buf, size_t _n)
98
99protected:
102
104 size_t __bufSize;
107
108 void init(File* _pFile);
110};
111
112__DCL_END_NAMESPACE
113
114#endif // __DCL_FILE_INPUT_STREAM_H__
115
#define DCLCAPI
Definition Config.h:100
unsigned char byte_t
Definition Config.h:274
#define __noclose__
Definition Config.h:360
#define __DCL_THROWS1(e)
Definition Config.h:167
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
void CharsetConvertException *size_t n
Definition SQLField.cpp:253
Definition File.h:38
__DCL_THROWS1(IOException *)
void init(File *_pFile)
const byte_t * __cacheStart
virtual String toString() const
Definition Object.cpp:187