http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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  * $Log: URLInputSource.hpp,v $
00019  * Revision 1.6  2004/09/08 13:55:58  peiyongz
00020  * Apache License Version 2.0
00021  *
00022  * Revision 1.5  2004/01/29 11:46:29  cargilld
00023  * Code cleanup changes to get rid of various compiler diagnostic messages.
00024  *
00025  * Revision 1.4  2003/12/01 23:23:25  neilg
00026  * fix for bug 25118; thanks to Jeroen Witmond
00027  *
00028  * Revision 1.3  2003/05/16 21:36:55  knoaman
00029  * Memory manager implementation: Modify constructors to pass in the memory manager.
00030  *
00031  * Revision 1.2  2002/11/04 15:00:21  tng
00032  * C++ Namespace Support.
00033  *
00034  * Revision 1.1.1.1  2002/02/01 22:21:50  peiyongz
00035  * sane_include
00036  *
00037  * Revision 1.8  2000/12/14 18:49:56  tng
00038  * Fix API document generation warning: "Warning: end of member group without matching begin"
00039  *
00040  * Revision 1.7  2000/02/24 20:00:22  abagchi
00041  * Swat for removing Log from API docs
00042  *
00043  * Revision 1.6  2000/02/15 23:59:07  roddey
00044  * More updated documentation of Framework classes.
00045  *
00046  * Revision 1.5  2000/02/15 01:21:30  roddey
00047  * Some initial documentation improvements. More to come...
00048  *
00049  * Revision 1.4  2000/02/06 07:47:46  rahulj
00050  * Year 2K copyright swat.
00051  *
00052  * Revision 1.3  2000/01/26 18:56:02  roddey
00053  * Needed to include XMLURL.hpp so that it compiles standalone.
00054  *
00055  * Revision 1.2  2000/01/15 01:26:16  rahulj
00056  * Added support for HTTP to the parser using libWWW 5.2.8.
00057  * Renamed URL.[ch]pp to XMLURL.[ch]pp and like wise for the class name.
00058  * Only tested under NT 4.0 SP 5.
00059  * Removed URL.hpp from files where it was not used.
00060  *
00061  * Revision 1.1  2000/01/12 00:13:26  roddey
00062  * These were moved from internal/ to framework/, which was something that should have
00063  * happened long ago. They are really framework type of classes.
00064  *
00065  * Revision 1.1.1.1  1999/11/09 01:08:18  twl
00066  * Initial checkin
00067  *
00068  * Revision 1.2  1999/11/08 20:44:44  rahul
00069  * Swat for adding in Product name and CVS comment log variable.
00070  *
00071  */
00072 
00073 
00074 
00075 #if !defined(URLINPUTSOURCE_HPP)
00076 #define URLINPUTSOURCE_HPP
00077 
00078 #include <xercesc/util/XMLURL.hpp>
00079 #include <xercesc/sax/InputSource.hpp>
00080 
00081 XERCES_CPP_NAMESPACE_BEGIN
00082 
00083 class BinInputStream;
00084 
00100 class  URLInputSource : public InputSource
00101 {
00102 public :
00103     // -----------------------------------------------------------------------
00104     //  Constructors and Destructor
00105     // -----------------------------------------------------------------------
00106 
00109 
00121     URLInputSource
00122     (
00123         const XMLURL& urlId
00124         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00125     );
00126 
00127 
00142     URLInputSource
00143     (
00144         const   XMLCh* const    baseId
00145         , const XMLCh* const    systemId
00146         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00147     );
00148 
00165     URLInputSource
00166     (
00167         const   XMLCh* const    baseId
00168         , const XMLCh* const    systemId
00169         , const XMLCh* const    publicId
00170         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00171     );
00172 
00173 
00188     URLInputSource
00189     (
00190         const   XMLCh* const    baseId
00191         , const char* const     systemId
00192         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00193     );
00194 
00213     URLInputSource
00214     (
00215         const   XMLCh* const    baseId
00216         , const char* const     systemId
00217         , const char* const     publicId
00218         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00219     );
00220 
00222 
00225     ~URLInputSource();
00227 
00228 
00229     // -----------------------------------------------------------------------
00230     //  Virtual input source interface
00231     // -----------------------------------------------------------------------
00232 
00235 
00240     BinInputStream* makeStream() const;
00241 
00243 
00244 
00245     // -----------------------------------------------------------------------
00246     //  Getter methods
00247     // -----------------------------------------------------------------------
00248 
00251 
00260     const XMLURL& urlSrc() const;
00261 
00263 
00264 
00265 private :
00266     // -----------------------------------------------------------------------
00267     //  Unimplemented constructors and operators
00268     // -----------------------------------------------------------------------    
00269     URLInputSource(const URLInputSource&);
00270     URLInputSource& operator=(const URLInputSource&);
00271 
00272     // -----------------------------------------------------------------------
00273     //  Private data members
00274     //
00275     //  fURL
00276     //      This is the URL created from the passed ids.
00277     // -----------------------------------------------------------------------
00278     XMLURL fURL;
00279 };
00280 
00281 
00282 inline const XMLURL& URLInputSource::urlSrc() const
00283 {
00284     return fURL;
00285 }
00286 
00287 XERCES_CPP_NAMESPACE_END
00288 
00289 #endif


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.