Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/telefonicasoluciones/search/server/parser/xml/TextToken.java


1   package com.telefonicasoluciones.search.server.parser.xml;
2   
3   /**
4    * Representa un bloque de texto.
5    * @author Ricardo Lorenzo
6    */
7   
8   public class TextToken {
9     private StringBuffer text;
10  public TextToken () {
11    text = new StringBuffer();
12  }
13  public void appendText (String more) {
14    text.append(more);
15  }
16  public String getText () {
17    return text.toString();
18  }
19  public void setText (String newText) {
20    text = new StringBuffer(newText);
21  }
22  public void setText (StringBuffer newText) {
23    text = newText;
24  }
25  public String toString () {
26    return text.toString();
27  }
28  }