com.fasterxml.aalto.util
Class TextAccumulator

java.lang.Object
  extended by com.fasterxml.aalto.util.TextAccumulator

public final class TextAccumulator
extends Object

Simple utility class used to efficiently accumulate and concatenate text passed in various forms


Constructor Summary
TextAccumulator()
           
 
Method Summary
 void addText(char[] buf, int start, int end)
           
 void addText(String text)
           
 String getAndClear()
           
 boolean hasText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAccumulator

public TextAccumulator()
Method Detail

hasText

public boolean hasText()

addText

public void addText(String text)

addText

public void addText(char[] buf,
                    int start,
                    int end)

getAndClear

public String getAndClear()


Copyright © 2012 Fasterxml.com. All Rights Reserved.