org.odftoolkit.simple.common
Class TextExtractor.ExtractorStringBuilder

java.lang.Object
  extended by org.odftoolkit.simple.common.TextExtractor.ExtractorStringBuilder
Enclosing class:
TextExtractor

protected static class TextExtractor.ExtractorStringBuilder
extends Object

This class is used to provide the string builder functions to extractor. It will automatically process the last NewLineChar.

Since:
0.3.5

Method Summary
 void append(char ch)
          Append a character
 void append(String str)
          Append a string
 void appendLine()
          Append a new line character at the end
 String toString()
          Return the string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

append

public void append(String str)
Append a string

Parameters:
str - - the string

append

public void append(char ch)
Append a character

Parameters:
ch - - the character

appendLine

public void appendLine()
Append a new line character at the end


toString

public String toString()
Return the string value.

If the last character is a new line character and is appended with appendLine(), the last new line character will be removed.

Overrides:
toString in class Object


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.