URLInputSource.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2000,2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Id: URLInputSource.hpp 191054 2005-06-17 02:56:35Z jberry $
00019  */
00020 
00021 
00022 
00023 #if !defined(URLINPUTSOURCE_HPP)
00024 #define URLINPUTSOURCE_HPP
00025 
00026 #include <xercesc/util/XMLURL.hpp>
00027 #include <xercesc/sax/InputSource.hpp>
00028 
00029 XERCES_CPP_NAMESPACE_BEGIN
00030 
00031 class BinInputStream;
00032 
00048 class XMLPARSER_EXPORT URLInputSource : public InputSource
00049 {
00050 public :
00051     // -----------------------------------------------------------------------
00052     //  Constructors and Destructor
00053     // -----------------------------------------------------------------------
00054 
00057 
00069     URLInputSource
00070     (
00071         const XMLURL& urlId
00072         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00073     );
00074 
00075 
00090     URLInputSource
00091     (
00092         const   XMLCh* const    baseId
00093         , const XMLCh* const    systemId
00094         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00095     );
00096 
00113     URLInputSource
00114     (
00115         const   XMLCh* const    baseId
00116         , const XMLCh* const    systemId
00117         , const XMLCh* const    publicId
00118         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00119     );
00120 
00121 
00136     URLInputSource
00137     (
00138         const   XMLCh* const    baseId
00139         , const char* const     systemId
00140         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00141     );
00142 
00161     URLInputSource
00162     (
00163         const   XMLCh* const    baseId
00164         , const char* const     systemId
00165         , const char* const     publicId
00166         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00167     );
00168 
00170 
00173     ~URLInputSource();
00175 
00176 
00177     // -----------------------------------------------------------------------
00178     //  Virtual input source interface
00179     // -----------------------------------------------------------------------
00180 
00183 
00188     BinInputStream* makeStream() const;
00189 
00191 
00192 
00193     // -----------------------------------------------------------------------
00194     //  Getter methods
00195     // -----------------------------------------------------------------------
00196 
00199 
00208     const XMLURL& urlSrc() const;
00209 
00211 
00212 
00213 private :
00214     // -----------------------------------------------------------------------
00215     //  Unimplemented constructors and operators
00216     // -----------------------------------------------------------------------    
00217     URLInputSource(const URLInputSource&);
00218     URLInputSource& operator=(const URLInputSource&);
00219 
00220     // -----------------------------------------------------------------------
00221     //  Private data members
00222     //
00223     //  fURL
00224     //      This is the URL created from the passed ids.
00225     // -----------------------------------------------------------------------
00226     XMLURL fURL;
00227 };
00228 
00229 
00230 inline const XMLURL& URLInputSource::urlSrc() const
00231 {
00232     return fURL;
00233 }
00234 
00235 XERCES_CPP_NAMESPACE_END
00236 
00237 #endif

Generated on Mon Feb 12 16:52:06 2007 for XQilla Simple API by  doxygen 1.4.6