00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098 #ifndef INPUTSOURCE_HPP
00099 #define INPUTSOURCE_HPP
00100
00101 #include <util/XercesDefs.hpp>
00102
00103 class BinInputStream;
00104
00105
00136 class InputSource
00137 {
00138 public:
00139
00140
00141
00144
00148 virtual ~InputSource();
00150
00151
00152
00155
00165 virtual BinInputStream* makeStream() const = 0;
00166
00168
00169
00170
00173
00182 const XMLCh* getEncoding() const;
00183
00184
00191 const XMLCh* getPublicId() const;
00192
00193
00202 const XMLCh* getSystemId() const;
00203
00212 const bool getIssueFatalErrorIfNotFound() const;
00213
00215
00216
00217
00220
00232 void setEncoding(const XMLCh* const encodingStr);
00233
00234
00246 void setPublicId(const XMLCh* const publicId);
00247
00264 void setSystemId(const XMLCh* const systemId);
00265
00275 void setIssueFatalErrorIfNotFound(const bool flag);
00276
00278
00279
00280 protected :
00281
00282
00283
00286
00287 InputSource();
00288
00292 InputSource(const XMLCh* const systemId);
00293
00298 InputSource
00299 (
00300 const XMLCh* const systemId
00301 , const XMLCh* const publicId
00302 );
00303
00307 InputSource(const char* const systemId);
00308
00313 InputSource
00314 (
00315 const char* const systemId
00316 , const char* const publicId
00317 );
00318
00320
00321
00322
00323
00324
00325 private:
00326
00327
00328
00329 InputSource(const InputSource&);
00330 void operator=(const InputSource&);
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351 XMLCh* fEncoding;
00352 XMLCh* fPublicId;
00353 XMLCh* fSystemId;
00354 bool fFatalErrorIfNotFound;
00355 };
00356
00357
00358
00359
00360
00361 inline const XMLCh* InputSource::getEncoding() const
00362 {
00363 return fEncoding;
00364 }
00365
00366 inline const XMLCh* InputSource::getPublicId() const
00367 {
00368 return fPublicId;
00369 }
00370
00371 inline const XMLCh* InputSource::getSystemId() const
00372 {
00373 return fSystemId;
00374 }
00375
00376 inline const bool InputSource::getIssueFatalErrorIfNotFound() const
00377 {
00378 return fFatalErrorIfNotFound;
00379 }
00380
00381
00382
00383
00384 inline void InputSource::setIssueFatalErrorIfNotFound(const bool flag)
00385 {
00386 fFatalErrorIfNotFound = flag;
00387 }
00388
00389 #endif