Parse() public method

public Parse ( Stream xmlStream ) : Query
xmlStream Stream
return Lucene.Net.Search.Query
Example #1
0
        //================= Helper methods ===================================

        private Query Parse(String xmlFileName)
        {
            using Stream xmlStream = typeof(TestParser).getResourceAsStream(xmlFileName);
            Query result = builder.Parse(xmlStream);

            return(result);
        }
Example #2
0
        //================= Helper methods ===================================

        private Query Parse(String xmlFileName)
        {
            //Stream xmlStream = typeof(TestParser).getResourceAsStream(xmlFileName);
            using (Stream xmlStream = typeof(TestParser).Assembly.GetManifestResourceStream(RESOURCE_PATH + xmlFileName))
            {
                Query result = builder.Parse(xmlStream);
                return(result);
            }
        }