Package com.caucho.util

Examples of com.caucho.util.CharBuffer.clear()


        ch = readChar();
        if (ch == 'D' || ch == 'd') {
          cbb.append((char)ch);
          ch = readChar();
          if (ch == 'T' || ch == 't') {
            cbb.clear();
            if (!ignore) readDT(dt);
            break;
          }
        } else if (ch == '/') {
          cbb.append((char)ch);
View Full Code Here


              break;
            }
          }
        }
        if (dt != null) dt.append(cbb);
        cbb.clear();
      }
      if (dt != null) dt.append((char)ch);
    }

    cbb.free();
View Full Code Here

        path = t.substring(0,ai);
        anchor = t.substring(ai + 1);
      } else {
        path = t.toString();
      }
      t.clear();
      if (log.isLoggable(Level.FINEST)) {
        log.finest(L.l("path: [{0}]",path));
        log.finest(L.l("anchor: [{0}]",anchor));
      }
View Full Code Here

      }
      if (t.endsWith(".package-summary"))
          t.setLength(t.length() - 16);

      fullname = t.toString();
      t.clear();
      if (log.isLoggable(Level.FINEST)) {
        log.finest(L.l("fullname: [{0}]",fullname));
      }

      parseDescr = "parsing name, looking for opening <B>";
View Full Code Here

      parseDescr = "parsing name, looking for opening <B>";
      i = readToAndEat(cb,i,"<B>",null);
      parseDescr = "parsing name, looking for closing </B>";
      i = readToAndEat(cb,i,"<",t);
      name = t.toString();
      t.clear();

      if (log.isLoggable(Level.FINEST)) {
        log.finest(L.l("name: [{0}]",name));
      }
View Full Code Here

    CharBuffer buf = new CharBuffer();
    if (cursor.current() == '?') {
      char ch = cursor.next();
      while (isUserChar(ch)) {
        buf.clear();
        for (; isUserChar(ch); ch = cursor.next())
          buf.append(ch);
        String key = buf.toString();

        if (ch != '=')
View Full Code Here

          buf.append(ch);
        String key = buf.toString();

        if (ch != '=')
          throw new RuntimeException("broken attribute at: " + ch);
        buf.clear();
        for (ch = cursor.next();
             ch != cursor.DONE && ch != '&';
             ch = cursor.next())
          buf.append(ch);
View Full Code Here

    while (Character.isWhitespace(ch))
      ch = cursor.next();
   
    while (isUserChar(ch)) {
      buf.clear();
      for (; isUserChar(ch); ch = cursor.next())
        buf.append(ch);

      Recipient rcpt = new Recipient();
      to.add(rcpt);
View Full Code Here

      if (ch == '@') {
        ch = cursor.next();
        if (! isUserChar(ch))
          throw new RuntimeException("bad url");

        buf.clear();
        for (; isUserChar(ch); ch = cursor.next())
          buf.append(ch);

        rcpt.host = buf.toString();
      }
View Full Code Here

    int i = 0;
   
    CharBuffer buffer = new CharBuffer();
   
    while (i < len) {
      buffer.clear();
     
      // skip whitespace
      for (; i < len && Character.isWhitespace(ch = s.charAt(i)); i++) {
      }
     
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.