78
|
1 |
/*
|
|
2 |
* StxXercesInputStream.hpp
|
|
3 |
*
|
|
4 |
* Created on: Dec 8, 2008
|
|
5 |
* Author: Jan Kurs
|
|
6 |
*/
|
|
7 |
|
|
8 |
#ifndef STXINPUTSTREAM_H_
|
|
9 |
#define STXINPUTSTREAM_H_
|
|
10 |
|
|
11 |
|
|
12 |
#include "StxCPPUtils.h"
|
|
13 |
#include <xercesc/util/BinInputStream.hpp>
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
XERCES_CPP_NAMESPACE_USE
|
|
18 |
|
|
19 |
class StxXercesInputStream: public BinInputStream {
|
|
20 |
|
|
21 |
protected:
|
|
22 |
OBJ* stx_stream_refcell;
|
|
23 |
OBJ* stx_buffer_refcell;
|
|
24 |
OBJ* stx_symbol_refcell;
|
|
25 |
public:
|
|
26 |
|
|
27 |
StxXercesInputStream(OBJ stx_stream);
|
|
28 |
|
|
29 |
virtual ~StxXercesInputStream();
|
|
30 |
|
|
31 |
virtual unsigned int curPos() const;
|
|
32 |
virtual unsigned int readBytes(XMLByte* const toFill, const unsigned int maxToRead);
|
|
33 |
virtual const XMLCh* getContentType() const;
|
|
34 |
};
|
|
35 |
|
|
36 |
|
|
37 |
#endif /* STXINPUTSTREAM_H_ */
|
|
38 |
|