private XmlTextReaderImpl ( Stream stream, byte bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr, XmlParserContext context, bool closeInput ) : System.IO | ||
stream | Stream | |
bytes | byte | |
byteCount | int | |
settings | XmlReaderSettings | |
baseUri | Uri | |
baseUriStr | string | |
context | XmlParserContext | |
closeInput | bool | |
return | System.IO |
internal XmlTextReaderImpl(Stream stream, byte[] bytes, int byteCount, XmlReaderSettings settings, Uri baseUri, string baseUriStr,
XmlParserContext context, bool closeInput)
: this(settings.GetXmlResolver(), settings, context)
{
// get BaseUri from XmlParserContext
if (context != null)
{
if (context.BaseURI != null && context.BaseURI.Length > 0 &&
!UriEqual(baseUri, baseUriStr, context.BaseURI, settings.GetXmlResolver()))
{
if (baseUriStr.Length > 0)
{
Throw(SR.Xml_DoubleBaseUri);
}
Debug.Assert(baseUri == null);
baseUriStr = context.BaseURI;
}
}
_reportedBaseUri = baseUriStr;
_closeInput = closeInput;
_laterInitParam = new LaterInitParam();
_laterInitParam.inputStream = stream;
_laterInitParam.inputBytes = bytes;
_laterInitParam.inputByteCount = byteCount;
_laterInitParam.inputbaseUri = baseUri;
_laterInitParam.inputContext = context;
_laterInitParam.initType = InitInputType.Stream;
if (!settings.Async)
{
//if not set Async flag, finish the init in create stage.
FinishInitStream();
}
else
{
_laterInitParam.useAsync = true;
}
}
XmlTextReaderImpl::XmlTextReaderImpl ( ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( Stream input, XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( TextReader input, XmlReaderSettings settings, string baseUriStr, XmlParserContext context ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( XmlResolver resolver, XmlReaderSettings settings, XmlParserContext context ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url, Stream input, XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url, TextReader input, XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string url, XmlNameTable nt ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlNodeType fragType, XmlParserContext context ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string xmlFragment, XmlParserContext context, XmlReaderSettings settings ) : System.IO | |
XmlTextReaderImpl::XmlTextReaderImpl ( string uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver ) : System.IO |