Examples of CharBuffer


Examples of antlr.CharBuffer

{
public SearchExpressionLexer(InputStream in) {
  this(new ByteBuffer(in));
}
public SearchExpressionLexer(Reader in) {
  this(new CharBuffer(in));
}
View Full Code Here

Examples of antlr.CharBuffer

{
public MappingLexer(InputStream in) {
  this(new ByteBuffer(in));
}
public MappingLexer(Reader in) {
  this(new CharBuffer(in));
}
View Full Code Here

Examples of antlr.CharBuffer

        this( new ByteBuffer( in ) );
    }

    public JavaLexer(Reader in)
    {
        this( new CharBuffer( in ) );
    }
View Full Code Here

Examples of bgu.bio.util.CharBuffer

      while (header != null) {
        line1 = reader.readLine();
        line2 = reader.readLine();

        list.add(new StemStructure(header.substring(1), new CharBuffer(line1),
            new CharBuffer(line2)));

        header = reader.readLine();

      }
      reader.close();
View Full Code Here

Examples of com.caucho.util.CharBuffer

          ch = parseExtension(parent, name);
        }
        else if (ch == '(') {
          addText(parent);
          Element elt = xsl.createElementNS(XSLNS, "xsl:value-of");
          CharBuffer test = CharBuffer.allocate();
          lexToRparen(test);
          elt.setAttribute("select", test.close());
          parent.appendChild(elt);
          ch = read();
        }
        else {
          addText('$');
View Full Code Here

Examples of com.caucho.util.CharBuffer

        addText(String.valueOf(code));
        return ch;
      }
    }

    CharBuffer cb = CharBuffer.allocate();
    for (; ch >= 'a' && ch <= 'z'; ch = read())
      cb.append((char) ch);

    if (ch != ';') {
      addText('&');
      addText(cb.close());
    }
    else if (cb.matches("lt")) {
      addText('<');
      return read();
    }
    else if (cb.matches("gt")) {
      addText('>');
      return read();
    }
    else if (cb.matches("amp")) {
      addText('&');
      return read();
    }
    else if (cb.matches("quot")) {
      addText('"');
      return read();
    }
    else if (cb.matches("apos")) {
      addText('\'');
      return read();
    }
    else {
      addText('&');
      addText(cb.close());
    }

    return ch;
  }
View Full Code Here

Examples of com.caucho.util.CharBuffer

        return parseExtension(parent, name);
      }
      else if (ch == '(') {
        Element elt = xsl.createElementNS(XSLNS, "xsl:value-of");
        CharBuffer test = CharBuffer.allocate();
        lexToRparen(test);
        elt.setAttribute("select", test.close());
        parent.appendChild(elt);
        return read();
      }
      else
        throw error(L.l("expected statement at {0}", badChar(ch)));
View Full Code Here

Examples of com.caucho.util.CharBuffer

      else if ((ch = read()) != '(') {
        peek = ch;
        return parseStatement(elt, ch);
      }
      else {
        CharBuffer test = CharBuffer.allocate();
        lexToRparen(test);
        elt.setAttribute("select", test.close());
        return read();
      }
    }

    QElement elt = (QElement) xsl.createElement(name);
View Full Code Here

Examples of com.caucho.util.CharBuffer

    choose.setLocation(is.getURL(), is.getUserPath(), line, 0);
    parent.appendChild(choose);

    while (true) {
      lexExpect(ch, '(');
      CharBuffer test = CharBuffer.allocate();
      lexToRparen(test);

      QElement elt = (QElement) xsl.createElementNS(XSLNS, "xsl:when");
      choose.appendChild(elt);
      elt.setLocation(is.getURL(), is.getUserPath(), line, 0);
      elt.setAttribute("test", test.close());

      ch = parseStatement(elt, skipWhitespace(read()));

      ch = skipWhitespace(ch);
      if (ch != '$')
View Full Code Here

Examples of com.caucho.util.CharBuffer

  }

  private String parseName(int ch)
    throws IOException, XslParseException
  {
    CharBuffer cb = CharBuffer.allocate();

    for (; XmlChar.isNameChar(ch); ch = read())
      cb.append((char) ch);

    peek = ch;

    return cb.close();
  }
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.