| API Docs for SAX and DOM |
| Main Page Classes Files Related Pages # URLInputSource.hpp Go to the documentation of this file.
    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 /*
    00019  * $Id: URLInputSource.hpp 568078 2007-08-21 11:43:25Z amassari $
    00020  */
    00021
    00022
    00023
    00024 #if !defined(URLINPUTSOURCE_HPP)
    00025 #define URLINPUTSOURCE_HPP
    00026
    00027 #include <xercesc/util/XMLURL.hpp>
    00028 #include <xercesc/sax/InputSource.hpp>
    00029
    00030 XERCES_CPP_NAMESPACE_BEGIN
    00031
    00032 class BinInputStream;
    00033
    00049 class  URLInputSource : public InputSource
    00050 {
    00051 public :
    00052     // -----------------------------------------------------------------------
    00053     //  Constructors and Destructor
    00054     // -----------------------------------------------------------------------
    00055
    00058
    00070     URLInputSource
    00071     (
    00072         const XMLURL& urlId
    00073         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
    00074     );
    00075
    00076
    00091     URLInputSource
    00092     (
    00093         const   XMLCh* const    baseId
    00094         , const XMLCh* const    systemId
    00095         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00096     );
    00097
    00114     URLInputSource
    00115     (
    00116         const   XMLCh* const    baseId
    00117         , const XMLCh* const    systemId
    00118         , const XMLCh* const    publicId
    00119         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00120     );
    00121
    00122
    00137     URLInputSource
    00138     (
    00139         const   XMLCh* const    baseId
    00140         , const char* const     systemId
    00141         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00142     );
    00143
    00162     URLInputSource
    00163     (
    00164         const   XMLCh* const    baseId
    00165         , const char* const     systemId
    00166         , const char* const     publicId
    00167         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00168     );
    00169
    00171
    00174     ~URLInputSource();
    00176
    00177
    00178     // -----------------------------------------------------------------------
    00179     //  Virtual input source interface
    00180     // -----------------------------------------------------------------------
    00181
    00184
    00189     BinInputStream* makeStream() const;
    00190
    00192
    00193
    00194     // -----------------------------------------------------------------------
    00195     //  Getter methods
    00196     // -----------------------------------------------------------------------
    00197
    00200
    00209     const XMLURL& urlSrc() const;
    00210
    00212
    00213
    00214 private :
    00215     // -----------------------------------------------------------------------
    00216     //  Unimplemented constructors and operators
    00217     // -----------------------------------------------------------------------
    00218     URLInputSource(const URLInputSource&);
    00219     URLInputSource& operator=(const URLInputSource&);
    00220
    00221     // -----------------------------------------------------------------------
    00222     //  Private data members
    00223     //
    00224     //  fURL
    00225     //      This is the URL created from the passed ids.
    00226     // -----------------------------------------------------------------------
    00227     XMLURL fURL;
    00228 };
    00229
    00230
    00231 inline const XMLURL& URLInputSource::urlSrc() const
    00232 {
    00233     return fURL;
    00234 }
    00235
    00236 XERCES_CPP_NAMESPACE_END
    00237
    00238 #endif

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