DCL
4.0
Loading...
Searching...
No Matches
BufferedInputStream.h
Go to the documentation of this file.
1
#ifndef __DCL_BUFFERED_INPUT_STREAM_H__
2
#define __DCL_BUFFERED_INPUT_STREAM_H__ 20110130
3
4
#ifndef __DCL_INPUT_STREAM_H__
5
#include <
dcl/InputStream.h
>
6
#endif
7
#ifndef __DCL_STRING_H__
8
#include <
dcl/String.h
>
9
#endif
10
11
__DCL_BEGIN_NAMESPACE
12
23
class
DCLCAPI
BufferedInputStream :
public
InputStream
24
{
25
DECLARE_CLASSINFO
(BufferedInputStream)
26
public
:
27
virtual
String
toString
()
const
;
28
46
BufferedInputStream(
InputStream
&
__noclose__
_input,
size_t
_bufSize = 1024);
47
62
BufferedInputStream(
InputStream
*
__destroy__
_pInput,
size_t
_bufSize = 1024)
63
__DCL_THROWS1
(
IOException
*);
64
69
virtual
~BufferedInputStream();
70
75
virtual
void
close()
76
__DCL_THROWS1
(
IOException
*);
77
94
virtual
size_t
read(
void
* _buf,
size_t
_n)
95
__DCL_THROWS1
(
IOException
*);
96
109
virtual
bool
readLine(ByteString& _buf)
110
__DCL_THROWS1
(
IOException
*);
111
112
private
:
113
InputStream
* __input;
114
bool
__closeDestroy;
115
116
char
* __buf;
117
size_t
__bufSize;
118
const
char
* __begin;
119
const
char
* __end;
120
bool
__endLine;
121
};
122
123
__DCL_END_NAMESPACE
124
125
#endif
// __DCL_BUFFERED_INPUT_STREAM_H__
__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
InputStream.h
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:210
String.h
IOException
Definition
Exception.h:93
InputStream
Definition
InputStream.h:23
Object::toString
virtual String toString() const
Definition
Object.cpp:187
include
dcl
BufferedInputStream.h
Generated by
1.14.0