00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef WRAPPER4DOMINPUTSOURCE_HPP
00023 #define WRAPPER4DOMINPUTSOURCE_HPP
00024 
00025 #include <xercesc/sax/InputSource.hpp>
00026 
00027 XERCES_CPP_NAMESPACE_BEGIN
00028 
00029 class DOMInputSource;
00030 
00031 
00035 class  Wrapper4DOMInputSource: public InputSource
00036 {
00037 public:
00040 
00053     Wrapper4DOMInputSource
00054     (
00055         DOMInputSource* const inputSource
00056         , const bool adoptFlag = true
00057         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00058     );
00059 
00064     virtual ~Wrapper4DOMInputSource();
00066 
00067 
00068     
00081     BinInputStream* makeStream() const;
00082 
00084 
00085     
00100     const XMLCh* getEncoding() const;
00101 
00102 
00112     const XMLCh* getPublicId() const;
00113 
00114 
00126     const XMLCh* getSystemId() const;
00127 
00140     bool getIssueFatalErrorIfNotFound() const;
00141 
00143 
00144 
00145     
00148 
00163     void setEncoding(const XMLCh* const encodingStr);
00164 
00165 
00180     void setPublicId(const XMLCh* const publicId);
00181 
00199     void setSystemId(const XMLCh* const systemId);
00200 
00213     void setIssueFatalErrorIfNotFound(const bool flag);
00214 
00216 
00217 
00218 private:
00219     
00220     
00221     
00222     Wrapper4DOMInputSource(const Wrapper4DOMInputSource&);
00223     Wrapper4DOMInputSource& operator=(const Wrapper4DOMInputSource&);
00224 
00225     
00226     
00227     
00228     bool            fAdoptInputSource;
00229     DOMInputSource* fInputSource;
00230 };
00231 
00232 XERCES_CPP_NAMESPACE_END
00233 
00234 
00235 #endif