public final class LargeStringBuffer extends Object implements AppendableCharSequence
| Constructor and Description |
|---|
LargeStringBuffer()
Create an empty LargeStringBuffer with default space allocation
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(CharSequence s)
Append a CharSequence to this LargeStringBuffer
|
char |
charAt(int index)
Returns the character at the specified index.
|
boolean |
equals(Object other)
Compare equality
|
int |
hashCode()
Generate a hash code
|
int |
length()
Returns the length of this character sequence.
|
void |
setLength(int length)
Set the length.
|
CharSequence |
subSequence(int start,
int end)
Returns a new character sequence that is a subsequence of this sequence.
|
String |
substring(int start,
int end)
Returns a new character sequence that is a subsequence of this sequence.
|
String |
toString()
Convert to a string
|
void |
write(Writer writer)
Write the value to a writer
|
public LargeStringBuffer()
public void append(CharSequence s)
append in interface AppendableCharSequences - the data to be appendedpublic int length()
length in interface CharSequencepublic void setLength(int length)
setLength in interface AppendableCharSequencelength - the new lengthpublic char charAt(int index)
charAt in interface CharSequenceindex - the index of the character to be returnedIndexOutOfBoundsException - if the index argument is negative or not less than
length()public CharSequence subSequence(int start, int end)
subSequence in interface CharSequencestart - the start index, inclusiveend - the end index, exclusiveIndexOutOfBoundsException - if start or end are negative,
if end is greater than length(),
or if start is greater than endpublic String toString()
toString in interface CharSequencetoString in class Objectpublic String substring(int start, int end)
start - index of the first character to be includedend - index of the character after the last one to be includedpublic void write(Writer writer) throws IOException
writer - the writer to which the value is to be writtenIOException - if an error occurs downstreamCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.