Package org.stringtree.util.iterator

Examples of org.stringtree.util.iterator.SkipBlankAndCommentLineIterator


            ioe.printStackTrace();
        }
    }

    private void parse(String content, Collection<Mount> dest, StringKeeper context) {
        StringIterator lines = new SkipBlankAndCommentLineIterator(new StringReader(content), "#");
        while (lines.hasNext()) {
            String pattern = "";
            String application = "";
            String tail = "";
           
            String line = lines.nextString();
            Spliterator words = new BlankPaddedSpliterator(line);
           
            if (words.hasNext()) pattern = words.nextString();
            if (words.hasNext()) application = words.nextString();
            if (words.hasNext()) tail = words.tail();
View Full Code Here

TOP

Related Classes of org.stringtree.util.iterator.SkipBlankAndCommentLineIterator

Copyright © 2018 www.massapicom. 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.