Package one.microstream.chars
Interface EscapeHandler
- All Known Implementing Classes:
EscapeHandler.Default
public interface EscapeHandler
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EscapeHandler.Default
-
Method Summary
Modifier and Type Method Description void
handleEscapedChar(char escapedChar, VarString literalBuilder)
boolean
needsEscaping(char chr)
static char
parseCharacter(String c, char escapeCharacter)
char
transformEscapedChar(char chr)
Transforms the given character on demand.char
unescape(char chr)
-
Method Details
-
handleEscapedChar
-
needsEscaping
boolean needsEscaping(char chr) -
transformEscapedChar
char transformEscapedChar(char chr)Transforms the given character on demand. Following escaped characters are transformed:- '\t' -> 't'
- '\b' -> 'b'
- '\n' -> 'n'
- '\r' -> 'r'
- '\f' -> 'f'
- Parameters:
chr
- the character to uneescape- Returns:
- the unescaped value
-
unescape
char unescape(char chr) -
parseCharacter
-