com.evolveum.midpoint.util
Class GenericEscapeStringBuilder

java.lang.Object
  extended by com.evolveum.midpoint.util.GenericEscapeStringBuilder
All Implemented Interfaces:
EscapeStringBuilder, java.io.Serializable, java.lang.Appendable, java.lang.CharSequence
Direct Known Subclasses:
XQueryEscapeStringBuilder

public class GenericEscapeStringBuilder
extends java.lang.Object
implements java.io.Serializable, java.lang.Appendable, java.lang.CharSequence, EscapeStringBuilder

See Also:
Serialized Form

Constructor Summary
GenericEscapeStringBuilder()
           
GenericEscapeStringBuilder(java.lang.CharSequence seq)
           
GenericEscapeStringBuilder(int capacity)
           
GenericEscapeStringBuilder(java.lang.String str)
           
 
Method Summary
 EscapeStringBuilder append(boolean b)
          Appends the string representation of the boolean argument to the sequence.
 GenericEscapeStringBuilder append(char c)
          Appends the string representation of the char argument to this sequence.
 EscapeStringBuilder append(char[] str)
          Appends the string representation of the char array argument to this sequence.
 EscapeStringBuilder append(char[] str, int offset, int len)
          Appends the string representation of a subarray of the char array argument to this sequence.
 GenericEscapeStringBuilder append(java.lang.CharSequence s)
          Appends the specified character sequence to this Appendable.
 GenericEscapeStringBuilder append(java.lang.CharSequence s, int start, int end)
          Appends a subsequence of the specified CharSequence to this sequence.
 EscapeStringBuilder append(double d)
          Appends the string representation of the double argument to this sequence.
 EscapeStringBuilder append(float f)
          Appends the string representation of the float argument to this sequence.
 EscapeStringBuilder append(GenericEscapeStringBuilder xsb)
          Appends the specified StringBuilder to this sequence.
 EscapeStringBuilder append(int i)
          Appends the string representation of the int argument to this sequence.
 EscapeStringBuilder append(long lng)
          Appends the string representation of the long argument to this sequence.
 EscapeStringBuilder append(java.lang.Object obj)
          Appends the string representation of the Object argument.
 EscapeStringBuilder append(java.lang.String str)
          Appends the specified string to this character sequence.
 EscapeStringBuilder append(java.lang.StringBuffer sb)
          Appends the specified StringBuffer to this sequence.
 EscapeStringBuilder append(java.lang.StringBuilder sb)
          Appends the specified StringBuilder to this sequence.
 EscapeStringBuilder appendCodePoint(int codePoint)
          Appends the string representation of the codePoint argument to this sequence.
 int capacity()
          Returns the current capacity.
 char charAt(int index)
          Returns the char value in this sequence at the specified index.
 int codePointAt(int index)
          Returns the character (Unicode code point) at the specified index.
 int codePointBefore(int index)
          Returns the character (Unicode code point) before the specified index.
 int codePointCount(int beginIndex, int endIndex)
          Returns the number of Unicode code points in the specified text range of this sequence.
 EscapeStringBuilder delete(int start, int end)
          Removes the characters in a substring of this sequence.
 EscapeStringBuilder deleteCharAt(int index)
          Removes the char at the specified position in this sequence.
 EscapeStringBuilder eappend(java.lang.Object o)
          Appends the string representation of the Object.toString() argument and escape value with XML escape
 EscapeStringBuilder eappend(java.lang.String str)
          Appends the string representation of the String argument and escape value with XML escape
 void ensureCapacity(int minimumCapacity)
          Ensures that the capacity is at least equal to the specified minimum.
 void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
          Characters are copied from this sequence into the destination character array dst.
 int indexOf(java.lang.String str)
          Returns the index within this string of the first occurrence of the specified substring.
 int indexOf(java.lang.String str, int fromIndex)
          Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
 EscapeStringBuilder insert(int offset, boolean b)
          Inserts the string representation of the boolean argument into this sequence.
 EscapeStringBuilder insert(int offset, char c)
          Inserts the string representation of the char argument into this sequence.
 EscapeStringBuilder insert(int offset, char[] str)
          Inserts the string representation of the char array argument into this sequence.
 EscapeStringBuilder insert(int index, char[] str, int offset, int len)
          Inserts the string representation of a subarray of the str array argument into this sequence.
 EscapeStringBuilder insert(int dstOffset, java.lang.CharSequence s)
          Inserts the specified CharSequence into this sequence.
 EscapeStringBuilder insert(int dstOffset, java.lang.CharSequence s, int start, int end)
          Inserts a subsequence of the specified CharSequence into this sequence.
 EscapeStringBuilder insert(int offset, double d)
          Inserts the string representation of the double argument into this sequence.
 EscapeStringBuilder insert(int offset, float f)
          Inserts the string representation of the float argument into this sequence.
 EscapeStringBuilder insert(int offset, int i)
          Inserts the string representation of the second int argument into this sequence.
 EscapeStringBuilder insert(int offset, long l)
          Inserts the string representation of the long argument into this sequence.
 EscapeStringBuilder insert(int offset, java.lang.Object obj)
          Inserts the string representation of the Object argument into this character sequence.
 EscapeStringBuilder insert(int offset, java.lang.String str)
          Inserts the string into this character sequence.
 int lastIndexOf(java.lang.String str)
          Returns the index within this string of the rightmost occurrence of the specified substring.
 int lastIndexOf(java.lang.String str, int fromIndex)
          Returns the index within this string of the last occurrence of the specified substring.
 int length()
          Returns the length (character count).
 int offsetByCodePoints(int index, int codePointOffset)
          Returns the index within this sequence that is offset from the given index by codePointOffset code points.
 EscapeStringBuilder replace(int start, int end, java.lang.String str)
          Replaces the characters in a substring of this sequence with characters in the specified String.
 EscapeStringBuilder reverse()
          Causes this character sequence to be replaced by the reverse of the sequence.
 void setCharAt(int index, char ch)
          The character at the specified index is set to ch.
 void setLength(int newLength)
          Sets the length of the character sequence.
 java.lang.CharSequence subSequence(int start, int end)
          Returns a new character sequence that is a subsequence of this sequence.
 java.lang.String substring(int start)
          Returns a new String that contains a subsequence of characters currently contained in this character sequence.
 java.lang.String substring(int start, int end)
          Returns a new String that contains a subsequence of characters currently contained in this sequence.
 java.lang.String toString()
          Returns a string representing the data in this sequence.
 java.lang.StringBuilder toStringBuilder()
          Returns a SSttringBuilder representing the data in this sequence.
 void trimToSize()
          Attempts to reduce storage used for the character sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericEscapeStringBuilder

public GenericEscapeStringBuilder()

GenericEscapeStringBuilder

public GenericEscapeStringBuilder(java.lang.CharSequence seq)

GenericEscapeStringBuilder

public GenericEscapeStringBuilder(int capacity)

GenericEscapeStringBuilder

public GenericEscapeStringBuilder(java.lang.String str)
Method Detail

append

public EscapeStringBuilder append(boolean b)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the boolean argument to the sequence.

Specified by:
append in interface EscapeStringBuilder

append

public GenericEscapeStringBuilder append(char c)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the char argument to this sequence.

Specified by:
append in interface EscapeStringBuilder
Specified by:
append in interface java.lang.Appendable

append

public EscapeStringBuilder append(char[] str)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the char array argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(char[] str,
                                  int offset,
                                  int len)
Description copied from interface: EscapeStringBuilder
Appends the string representation of a subarray of the char array argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public GenericEscapeStringBuilder append(java.lang.CharSequence s)
Description copied from interface: EscapeStringBuilder
Appends the specified character sequence to this Appendable.

Specified by:
append in interface EscapeStringBuilder
Specified by:
append in interface java.lang.Appendable

append

public GenericEscapeStringBuilder append(java.lang.CharSequence s,
                                         int start,
                                         int end)
Description copied from interface: EscapeStringBuilder
Appends a subsequence of the specified CharSequence to this sequence.

Specified by:
append in interface EscapeStringBuilder
Specified by:
append in interface java.lang.Appendable

append

public EscapeStringBuilder append(double d)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the double argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(float f)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the float argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(int i)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the int argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(long lng)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the long argument to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(java.lang.Object obj)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the Object argument.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(java.lang.String str)
Description copied from interface: EscapeStringBuilder
Appends the specified string to this character sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(java.lang.StringBuffer sb)
Description copied from interface: EscapeStringBuilder
Appends the specified StringBuffer to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(java.lang.StringBuilder sb)
Description copied from interface: EscapeStringBuilder
Appends the specified StringBuilder to this sequence.

Specified by:
append in interface EscapeStringBuilder

append

public EscapeStringBuilder append(GenericEscapeStringBuilder xsb)
Description copied from interface: EscapeStringBuilder
Appends the specified StringBuilder to this sequence.

Specified by:
append in interface EscapeStringBuilder

appendCodePoint

public EscapeStringBuilder appendCodePoint(int codePoint)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the codePoint argument to this sequence.

Specified by:
appendCodePoint in interface EscapeStringBuilder

capacity

public int capacity()
Description copied from interface: EscapeStringBuilder
Returns the current capacity.

Specified by:
capacity in interface EscapeStringBuilder

charAt

public char charAt(int index)
Description copied from interface: EscapeStringBuilder
Returns the char value in this sequence at the specified index.

Specified by:
charAt in interface EscapeStringBuilder
Specified by:
charAt in interface java.lang.CharSequence

codePointAt

public int codePointAt(int index)
Description copied from interface: EscapeStringBuilder
Returns the character (Unicode code point) at the specified index.

Specified by:
codePointAt in interface EscapeStringBuilder

codePointBefore

public int codePointBefore(int index)
Description copied from interface: EscapeStringBuilder
Returns the character (Unicode code point) before the specified index.

Specified by:
codePointBefore in interface EscapeStringBuilder

codePointCount

public int codePointCount(int beginIndex,
                          int endIndex)
Description copied from interface: EscapeStringBuilder
Returns the number of Unicode code points in the specified text range of this sequence.

Specified by:
codePointCount in interface EscapeStringBuilder

eappend

public EscapeStringBuilder eappend(java.lang.String str)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the String argument and escape value with XML escape

Specified by:
eappend in interface EscapeStringBuilder

eappend

public EscapeStringBuilder eappend(java.lang.Object o)
Description copied from interface: EscapeStringBuilder
Appends the string representation of the Object.toString() argument and escape value with XML escape

Specified by:
eappend in interface EscapeStringBuilder

delete

public EscapeStringBuilder delete(int start,
                                  int end)
Description copied from interface: EscapeStringBuilder
Removes the characters in a substring of this sequence.

Specified by:
delete in interface EscapeStringBuilder

deleteCharAt

public EscapeStringBuilder deleteCharAt(int index)
Description copied from interface: EscapeStringBuilder
Removes the char at the specified position in this sequence.

Specified by:
deleteCharAt in interface EscapeStringBuilder

ensureCapacity

public void ensureCapacity(int minimumCapacity)
Description copied from interface: EscapeStringBuilder
Ensures that the capacity is at least equal to the specified minimum.

Specified by:
ensureCapacity in interface EscapeStringBuilder

getChars

public void getChars(int srcBegin,
                     int srcEnd,
                     char[] dst,
                     int dstBegin)
Description copied from interface: EscapeStringBuilder
Characters are copied from this sequence into the destination character array dst.

Specified by:
getChars in interface EscapeStringBuilder

indexOf

public int indexOf(java.lang.String str)
Description copied from interface: EscapeStringBuilder
Returns the index within this string of the first occurrence of the specified substring.

Specified by:
indexOf in interface EscapeStringBuilder

indexOf

public int indexOf(java.lang.String str,
                   int fromIndex)
Description copied from interface: EscapeStringBuilder
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.

Specified by:
indexOf in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  boolean b)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the boolean argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  char c)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the char argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  char[] str)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the char array argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int index,
                                  char[] str,
                                  int offset,
                                  int len)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of a subarray of the str array argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int dstOffset,
                                  java.lang.CharSequence s)
Description copied from interface: EscapeStringBuilder
Inserts the specified CharSequence into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int dstOffset,
                                  java.lang.CharSequence s,
                                  int start,
                                  int end)
Description copied from interface: EscapeStringBuilder
Inserts a subsequence of the specified CharSequence into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  double d)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the double argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  float f)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the float argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  int i)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the second int argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  long l)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the long argument into this sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  java.lang.Object obj)
Description copied from interface: EscapeStringBuilder
Inserts the string representation of the Object argument into this character sequence.

Specified by:
insert in interface EscapeStringBuilder

insert

public EscapeStringBuilder insert(int offset,
                                  java.lang.String str)
Description copied from interface: EscapeStringBuilder
Inserts the string into this character sequence.

Specified by:
insert in interface EscapeStringBuilder

lastIndexOf

public int lastIndexOf(java.lang.String str)
Description copied from interface: EscapeStringBuilder
Returns the index within this string of the rightmost occurrence of the specified substring.

Specified by:
lastIndexOf in interface EscapeStringBuilder

lastIndexOf

public int lastIndexOf(java.lang.String str,
                       int fromIndex)
Description copied from interface: EscapeStringBuilder
Returns the index within this string of the last occurrence of the specified substring.

Specified by:
lastIndexOf in interface EscapeStringBuilder

length

public int length()
Description copied from interface: EscapeStringBuilder
Returns the length (character count).

Specified by:
length in interface EscapeStringBuilder
Specified by:
length in interface java.lang.CharSequence

offsetByCodePoints

public int offsetByCodePoints(int index,
                              int codePointOffset)
Description copied from interface: EscapeStringBuilder
Returns the index within this sequence that is offset from the given index by codePointOffset code points.

Specified by:
offsetByCodePoints in interface EscapeStringBuilder

replace

public EscapeStringBuilder replace(int start,
                                   int end,
                                   java.lang.String str)
Description copied from interface: EscapeStringBuilder
Replaces the characters in a substring of this sequence with characters in the specified String.

Specified by:
replace in interface EscapeStringBuilder

reverse

public EscapeStringBuilder reverse()
Description copied from interface: EscapeStringBuilder
Causes this character sequence to be replaced by the reverse of the sequence.

Specified by:
reverse in interface EscapeStringBuilder

setCharAt

public void setCharAt(int index,
                      char ch)
Description copied from interface: EscapeStringBuilder
The character at the specified index is set to ch.

Specified by:
setCharAt in interface EscapeStringBuilder

setLength

public void setLength(int newLength)
Description copied from interface: EscapeStringBuilder
Sets the length of the character sequence.

Specified by:
setLength in interface EscapeStringBuilder

subSequence

public java.lang.CharSequence subSequence(int start,
                                          int end)
Description copied from interface: EscapeStringBuilder
Returns a new character sequence that is a subsequence of this sequence.

Specified by:
subSequence in interface EscapeStringBuilder
Specified by:
subSequence in interface java.lang.CharSequence

substring

public java.lang.String substring(int start)
Description copied from interface: EscapeStringBuilder
Returns a new String that contains a subsequence of characters currently contained in this character sequence.

Specified by:
substring in interface EscapeStringBuilder

substring

public java.lang.String substring(int start,
                                  int end)
Description copied from interface: EscapeStringBuilder
Returns a new String that contains a subsequence of characters currently contained in this sequence.

Specified by:
substring in interface EscapeStringBuilder

toString

public java.lang.String toString()
Description copied from interface: EscapeStringBuilder
Returns a string representing the data in this sequence.

Specified by:
toString in interface EscapeStringBuilder
Specified by:
toString in interface java.lang.CharSequence
Overrides:
toString in class java.lang.Object

toStringBuilder

public java.lang.StringBuilder toStringBuilder()
Description copied from interface: EscapeStringBuilder
Returns a SSttringBuilder representing the data in this sequence.

Specified by:
toStringBuilder in interface EscapeStringBuilder

trimToSize

public void trimToSize()
Description copied from interface: EscapeStringBuilder
Attempts to reduce storage used for the character sequence.

Specified by:
trimToSize in interface EscapeStringBuilder


Copyright © 2012 evolveum. All Rights Reserved.