Parse() public method

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

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

            return(result);
        }
コード例 #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);
            }
        }