Package org.watermint.sourcecolon.org.opensolaris.opengrok.search

Examples of org.watermint.sourcecolon.org.opensolaris.opengrok.search.QueryBuilder.build()


    public String getCurrentQueryString() {
        QueryBuilder queryBuilder = getQueryBuilder();

        try {
            return queryBuilder.build().toString();
        } catch (ParseException e) {
            e.printStackTrace();
            return null;
        }
    }
View Full Code Here


        ByteArrayOutputStream content = new ByteArrayOutputStream();
        OutputStreamWriter writer = new OutputStreamWriter(content);
        QueryBuilder queryBuilder = getQueryBuilder();

        try {
            Context sourceContext = new Context(queryBuilder.build(), queryBuilder.getQueries());
            sourceContext.getContext(IOUtils.readerWithCharsetDetect(getResourceFile()), writer, req.getContextPath() + Prefix.XREF_P, null, getPath(), null, false, null);
            writer.flush();
            return content.toString();
        } catch (IOException | ParseException e) {
            e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.