Package org.apache.shale.clay.parser

Examples of org.apache.shale.clay.parser.AttributeTokenizer$AttributeEntry


            // look for the comment page directive containing the charset
            int s = snippet.getBuffer().indexOf(Parser.START_CHARSET_TOKEN);
            if (s > -1) {
               int e = snippet.getBuffer().indexOf(Parser.END_CHARSET_TOKEN, s);
               AttributeTokenizer tokenizer = new AttributeTokenizer(snippet.getBuffer(), s, e, 1, 0);
               Iterator ti = tokenizer.iterator();
               while (ti.hasNext()) {
                   Map.Entry attribute = (Map.Entry) ti.next();
                   Token key = (Token) attribute.getKey();
                   //check the attribute name, we are only interested
                   //in "charset"
View Full Code Here

TOP

Related Classes of org.apache.shale.clay.parser.AttributeTokenizer$AttributeEntry

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.