Index

A B C D E N S T U 
All Classes and Interfaces|All Packages

A

addEscape(char, String) - Method in class dev.mccue.guava.escape.CharEscaperBuilder
Add a new mapping from an index to an object to the escaping.
addEscape(char, String) - Method in class dev.mccue.guava.escape.Escapers.Builder
Adds a replacement string for the given input character.
addEscapes(char[], String) - Method in class dev.mccue.guava.escape.CharEscaperBuilder
Add multiple mappings at once for a particular index.
ArrayBasedCharEscaper - Class in dev.mccue.guava.escape
A CharEscaper that uses an array to quickly look up replacement characters for a given char value.
ArrayBasedCharEscaper(ArrayBasedEscaperMap, char, char) - Constructor for class dev.mccue.guava.escape.ArrayBasedCharEscaper
Creates a new ArrayBasedCharEscaper instance with the given replacement map and specified safe range.
ArrayBasedCharEscaper(Map<Character, String>, char, char) - Constructor for class dev.mccue.guava.escape.ArrayBasedCharEscaper
Creates a new ArrayBasedCharEscaper instance with the given replacement map and specified safe range.
ArrayBasedEscaperMap - Class in dev.mccue.guava.escape
An implementation-specific parameter class suitable for initializing ArrayBasedCharEscaper or ArrayBasedUnicodeEscaper instances.
ArrayBasedUnicodeEscaper - Class in dev.mccue.guava.escape
A UnicodeEscaper that uses an array to quickly look up replacement characters for a given code point.
ArrayBasedUnicodeEscaper(ArrayBasedEscaperMap, int, int, String) - Constructor for class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified safe range.
ArrayBasedUnicodeEscaper(Map<Character, String>, int, int, String) - Constructor for class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified safe range.
asFunction() - Method in class dev.mccue.guava.escape.Escaper
Returns a Function that invokes Escaper.escape(String) on this escaper.

B

build() - Method in class dev.mccue.guava.escape.Escapers.Builder
Returns a new escaper based on the current state of the builder.
builder() - Static method in class dev.mccue.guava.escape.Escapers
Returns a builder for creating simple, fast escapers.

C

CharEscaper - Class in dev.mccue.guava.escape
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
CharEscaper() - Constructor for class dev.mccue.guava.escape.CharEscaper
Constructor for use by subclasses.
CharEscaperBuilder - Class in dev.mccue.guava.escape
Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.
CharEscaperBuilder() - Constructor for class dev.mccue.guava.escape.CharEscaperBuilder
Construct a new sparse array builder.
codePointAt(CharSequence, int, int) - Static method in class dev.mccue.guava.escape.UnicodeEscaper
Returns the Unicode code point of the character at the given index.
computeReplacement(CharEscaper, char) - Static method in class dev.mccue.guava.escape.Escapers
Returns a string that would replace the given character in the specified escaper, or null if no replacement should be made.
computeReplacement(UnicodeEscaper, int) - Static method in class dev.mccue.guava.escape.Escapers
Returns a string that would replace the given character in the specified escaper, or null if no replacement should be made.
create(Map<Character, String>) - Static method in class dev.mccue.guava.escape.ArrayBasedEscaperMap
Returns a new ArrayBasedEscaperMap for creating ArrayBasedCharEscaper or ArrayBasedUnicodeEscaper instances.

D

dev.mccue.guava.escape - module dev.mccue.guava.escape
 
dev.mccue.guava.escape - package dev.mccue.guava.escape
Interfaces, utilities, and simple implementations of escapers and encoders.

E

escape(char) - Method in class dev.mccue.guava.escape.ArrayBasedCharEscaper
Escapes a single character using the replacement array and safe range values.
escape(char) - Method in class dev.mccue.guava.escape.CharEscaper
Returns the escaped form of the given character, or null if this character does not need to be escaped.
escape(int) - Method in class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
Escapes a single Unicode code point using the replacement array and safe range values.
escape(int) - Method in class dev.mccue.guava.escape.UnicodeEscaper
Returns the escaped form of the given Unicode code point, or null if this code point does not need to be escaped.
escape(String) - Method in class dev.mccue.guava.escape.ArrayBasedCharEscaper
 
escape(String) - Method in class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
 
escape(String) - Method in class dev.mccue.guava.escape.CharEscaper
Returns the escaped form of a given literal string.
escape(String) - Method in class dev.mccue.guava.escape.Escaper
Returns the escaped form of a given literal string.
escape(String) - Method in class dev.mccue.guava.escape.UnicodeEscaper
Returns the escaped form of a given literal string.
Escaper - Class in dev.mccue.guava.escape
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
Escaper() - Constructor for class dev.mccue.guava.escape.Escaper
Constructor for use by subclasses.
Escapers - Class in dev.mccue.guava.escape
Static utility methods pertaining to Escaper instances.
Escapers.Builder - Class in dev.mccue.guava.escape
A builder for simple, fast escapers.
escapeSlow(String, int) - Method in class dev.mccue.guava.escape.CharEscaper
Returns the escaped form of a given literal string, starting at the given index.
escapeSlow(String, int) - Method in class dev.mccue.guava.escape.UnicodeEscaper
Returns the escaped form of a given literal string, starting at the given index.
escapeUnsafe(char) - Method in class dev.mccue.guava.escape.ArrayBasedCharEscaper
Escapes a char value that has no direct explicit value in the replacement array and lies outside the stated safe range.
escapeUnsafe(int) - Method in class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
Escapes a code point that has no direct explicit value in the replacement array and lies outside the stated safe range.

N

nextEscapeIndex(CharSequence, int, int) - Method in class dev.mccue.guava.escape.ArrayBasedUnicodeEscaper
 
nextEscapeIndex(CharSequence, int, int) - Method in class dev.mccue.guava.escape.UnicodeEscaper
Scans a sub-sequence of characters from a given CharSequence, returning the index of the next character that requires escaping.
nullEscaper() - Static method in class dev.mccue.guava.escape.Escapers
Returns an Escaper that does no escaping, passing all character data through unchanged.

S

setSafeRange(char, char) - Method in class dev.mccue.guava.escape.Escapers.Builder
Sets the safe range of characters for the escaper.
setUnsafeReplacement(String) - Method in class dev.mccue.guava.escape.Escapers.Builder
Sets the replacement string for any characters outside the 'safe' range that have no explicit replacement.

T

toArray() - Method in class dev.mccue.guava.escape.CharEscaperBuilder
Convert this builder into an array of char[]s where the maximum index is the value of the highest character that has been seen.
toEscaper() - Method in class dev.mccue.guava.escape.CharEscaperBuilder
Convert this builder into a char escaper which is just a decorator around the underlying array of replacement char[]s.

U

UnicodeEscaper - Class in dev.mccue.guava.escape
An Escaper that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
UnicodeEscaper() - Constructor for class dev.mccue.guava.escape.UnicodeEscaper
Constructor for use by subclasses.
A B C D E N S T U 
All Classes and Interfaces|All Packages