org.terracotta.util
Interface ClusteredTextBucket

All Superinterfaces:
Appendable, CharSequence
All Known Implementing Classes:
TerracottaTextBucket

public interface ClusteredTextBucket
extends Appendable, CharSequence

A thread safe clustered appendable char-sequence. Instances of this class are intended to provide a clustered equivalent to the JDK StringBuffer class.


Method Summary
 ClusteredTextBucket append(char c)
           
 ClusteredTextBucket append(CharSequence csq)
          Appends the specified CharSequence to this bucket.
 ClusteredTextBucket append(CharSequence csq, int start, int end)
           
 
Methods inherited from interface java.lang.CharSequence
charAt, length, subSequence, toString
 

Method Detail

append

ClusteredTextBucket append(CharSequence csq)
                           throws IOException
Appends the specified CharSequence to this bucket.

The characters of this sequence are appended in order, with this bucket growing in length by the length of the argument.

This method modifies the text bucket in an atomic manner with respect to all other bucket mutating methods.

If csq is null then the sequence "null" is appended to the text bucket.

Specified by:
append in interface Appendable
Throws:
IOException

append

ClusteredTextBucket append(CharSequence csq,
                           int start,
                           int end)
                           throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

ClusteredTextBucket append(char c)
                           throws IOException
Specified by:
append in interface Appendable
Throws:
IOException


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.