Package org.apache.jena.atlas.lib
Class Chars
- java.lang.Object
-
- org.apache.jena.atlas.lib.Chars
-
public class Chars extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byteB_AMPHERSANDstatic byteB_ATstatic byteB_COLONstatic byteB_COMMAstatic byteB_CRstatic byteB_DASHstatic byteB_DOTstatic byteB_EQUALSstatic byteB_GTstatic byteB_HASHstatic byteB_LBRACEstatic byteB_LBRACKETstatic byteB_LPARENstatic byteB_LTstatic byteB_MINUSstatic byteB_NLstatic byteB_PERCENTstatic byteB_PLUSstatic byteB_QMARKstatic byteB_QUOTE1static byteB_QUOTE2static byteB_RBRACEstatic byteB_RBRACKETstatic byteB_RPARENstatic byteB_RSLASHstatic byteB_SEMICOLONstatic byteB_SLASHstatic byteB_STARstatic byteB_UNDERSCOREstatic byteB_VBARstatic charBOMstatic charBSPACEstatic charCH_AMPHERSANDstatic charCH_ATstatic charCH_COLONstatic charCH_COMMAstatic charCH_DASHstatic charCH_DOTstatic charCH_EQUALSstatic charCH_GTstatic charCH_HASHstatic charCH_LBRACEstatic charCH_LBRACKETstatic charCH_LPARENstatic charCH_LTstatic charCH_MINUSstatic charCH_PERCENTstatic charCH_PLUSstatic charCH_QMARKstatic charCH_QUOTE1static charCH_QUOTE2static charCH_RBRACEstatic charCH_RBRACKETstatic charCH_RPARENstatic charCH_RSLASHstatic charCH_SEMICOLONstatic charCH_SLASHstatic charCH_STARstatic charCH_UNDERSCOREstatic charCH_VBARstatic charCH_ZEROstatic java.nio.charset.CharsetcharsetASCIIstatic java.nio.charset.CharsetcharsetUTF8static charCRstatic char[]digits10static intEOFEnd of file - not a Unicode codepointstatic charFFstatic char[]hexDigitsLCHex digits : lower casestatic char[]hexDigitsUCHex digits : upper casestatic charLFstatic charNLstatic charNotACharacterstatic charOBJECT_REPLACEMENTstatic charREPLACEMENTstatic charReverseOrderBOMstatic java.lang.StringS_AMPHERSANDstatic java.lang.StringS_ATstatic java.lang.StringS_COLONstatic java.lang.StringS_COMMAstatic java.lang.StringS_DASHstatic java.lang.StringS_DOTstatic java.lang.StringS_EQUALSstatic java.lang.StringS_GEstatic java.lang.StringS_GTstatic java.lang.StringS_HASHstatic java.lang.StringS_LBRACEstatic java.lang.StringS_LBRACKETstatic java.lang.StringS_LEstatic java.lang.StringS_LPARENstatic java.lang.StringS_LTstatic java.lang.StringS_MINUSstatic java.lang.StringS_PERCENTstatic java.lang.StringS_PLUSstatic java.lang.StringS_QMARKstatic java.lang.StringS_QUOTE1static java.lang.StringS_QUOTE2static java.lang.StringS_RBRACEstatic java.lang.StringS_RBRACKETstatic java.lang.StringS_RPARENstatic java.lang.StringS_RSLASHstatic java.lang.StringS_SEMICOLONstatic java.lang.StringS_SLASHstatic java.lang.StringS_STARstatic java.lang.StringS_UNDERSCOREstatic java.lang.StringS_VBARstatic charSPCstatic charTABstatic intUNSETUndefined character (exact meaning depends on use) - not a Unicode codepoint
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.charset.CharsetDecoderallocDecoder()Allocate a CharsetDecoder, creating as necessarystatic java.nio.charset.CharsetEncoderallocEncoder()Allocate a CharsetEncoder, creating as necessarystatic booleancharInArray(int ch, char[] chars)Is char in the array?static java.nio.charset.CharsetDecodercreateDecoder()Create a UTF-8 decoderstatic java.nio.charset.CharsetEncodercreateEncoder()Create a UTF-8 encoderstatic voiddeallocDecoder(java.nio.charset.CharsetDecoder dec)Deallocate a CharsetDecoder, may increase pool sizestatic voiddeallocEncoder(java.nio.charset.CharsetEncoder enc)Deallocate a CharsetEncoder, may increase pool sizestatic voidencodeAsHex(java.lang.StringBuilder buff, char marker, char ch)static java.nio.charset.CharsetDecodergetDecoder()Get a UTF-8 decoder from the pool (null if pool empty)static java.nio.charset.CharsetEncodergetEncoder()Get a UTF-8 encoder from the pool (null if pool empty)static java.nio.charset.CharsetDecodergetThreadDecoder()Return a per-thread CharsetDecoderstatic java.nio.charset.CharsetEncodergetThreadEncoder()Return a per-thread CharsetEncoderstatic voidputDecoder(java.nio.charset.CharsetDecoder decoder)Add/return a UTF-8 decoder to the poolstatic voidputEncoder(java.nio.charset.CharsetEncoder encoder)Add/return a UTF-8 encoder to the pool
-
-
-
Field Detail
-
digits10
public static final char[] digits10
-
hexDigitsUC
public static final char[] hexDigitsUC
Hex digits : upper case
-
hexDigitsLC
public static final char[] hexDigitsLC
Hex digits : lower case
-
charsetUTF8
public static final java.nio.charset.Charset charsetUTF8
-
charsetASCII
public static final java.nio.charset.Charset charsetASCII
-
EOF
public static final int EOF
End of file - not a Unicode codepoint- See Also:
- Constant Field Values
-
BOM
public static final char BOM
- See Also:
- Constant Field Values
-
OBJECT_REPLACEMENT
public static final char OBJECT_REPLACEMENT
- See Also:
- Constant Field Values
-
REPLACEMENT
public static final char REPLACEMENT
- See Also:
- Constant Field Values
-
NotACharacter
public static final char NotACharacter
- See Also:
- Constant Field Values
-
ReverseOrderBOM
public static final char ReverseOrderBOM
- See Also:
- Constant Field Values
-
UNSET
public static final int UNSET
Undefined character (exact meaning depends on use) - not a Unicode codepoint- See Also:
- Constant Field Values
-
NL
public static final char NL
- See Also:
- Constant Field Values
-
LF
public static final char LF
- See Also:
- Constant Field Values
-
CR
public static final char CR
- See Also:
- Constant Field Values
-
TAB
public static final char TAB
- See Also:
- Constant Field Values
-
FF
public static final char FF
- See Also:
- Constant Field Values
-
SPC
public static final char SPC
- See Also:
- Constant Field Values
-
BSPACE
public static final char BSPACE
- See Also:
- Constant Field Values
-
CH_ZERO
public static final char CH_ZERO
- See Also:
- Constant Field Values
-
CH_LBRACKET
public static final char CH_LBRACKET
- See Also:
- Constant Field Values
-
CH_RBRACKET
public static final char CH_RBRACKET
- See Also:
- Constant Field Values
-
CH_LBRACE
public static final char CH_LBRACE
- See Also:
- Constant Field Values
-
CH_RBRACE
public static final char CH_RBRACE
- See Also:
- Constant Field Values
-
CH_LPAREN
public static final char CH_LPAREN
- See Also:
- Constant Field Values
-
CH_RPAREN
public static final char CH_RPAREN
- See Also:
- Constant Field Values
-
CH_LT
public static final char CH_LT
- See Also:
- Constant Field Values
-
CH_GT
public static final char CH_GT
- See Also:
- Constant Field Values
-
CH_UNDERSCORE
public static final char CH_UNDERSCORE
- See Also:
- Constant Field Values
-
CH_QUOTE1
public static final char CH_QUOTE1
- See Also:
- Constant Field Values
-
CH_QUOTE2
public static final char CH_QUOTE2
- See Also:
- Constant Field Values
-
CH_EQUALS
public static final char CH_EQUALS
- See Also:
- Constant Field Values
-
CH_STAR
public static final char CH_STAR
- See Also:
- Constant Field Values
-
CH_DOT
public static final char CH_DOT
- See Also:
- Constant Field Values
-
CH_COMMA
public static final char CH_COMMA
- See Also:
- Constant Field Values
-
CH_SEMICOLON
public static final char CH_SEMICOLON
- See Also:
- Constant Field Values
-
CH_COLON
public static final char CH_COLON
- See Also:
- Constant Field Values
-
CH_AMPHERSAND
public static final char CH_AMPHERSAND
- See Also:
- Constant Field Values
-
CH_AT
public static final char CH_AT
- See Also:
- Constant Field Values
-
CH_QMARK
public static final char CH_QMARK
- See Also:
- Constant Field Values
-
CH_HASH
public static final char CH_HASH
- See Also:
- Constant Field Values
-
CH_PLUS
public static final char CH_PLUS
- See Also:
- Constant Field Values
-
CH_MINUS
public static final char CH_MINUS
- See Also:
- Constant Field Values
-
CH_DASH
public static final char CH_DASH
- See Also:
- Constant Field Values
-
CH_SLASH
public static final char CH_SLASH
- See Also:
- Constant Field Values
-
CH_RSLASH
public static final char CH_RSLASH
- See Also:
- Constant Field Values
-
CH_PERCENT
public static final char CH_PERCENT
- See Also:
- Constant Field Values
-
CH_VBAR
public static final char CH_VBAR
- See Also:
- Constant Field Values
-
B_NL
public static final byte B_NL
- See Also:
- Constant Field Values
-
B_CR
public static final byte B_CR
- See Also:
- Constant Field Values
-
B_LBRACKET
public static final byte B_LBRACKET
- See Also:
- Constant Field Values
-
B_RBRACKET
public static final byte B_RBRACKET
- See Also:
- Constant Field Values
-
B_LBRACE
public static final byte B_LBRACE
- See Also:
- Constant Field Values
-
B_RBRACE
public static final byte B_RBRACE
- See Also:
- Constant Field Values
-
B_LPAREN
public static final byte B_LPAREN
- See Also:
- Constant Field Values
-
B_RPAREN
public static final byte B_RPAREN
- See Also:
- Constant Field Values
-
B_LT
public static final byte B_LT
- See Also:
- Constant Field Values
-
B_GT
public static final byte B_GT
- See Also:
- Constant Field Values
-
B_UNDERSCORE
public static final byte B_UNDERSCORE
- See Also:
- Constant Field Values
-
B_QUOTE1
public static final byte B_QUOTE1
- See Also:
- Constant Field Values
-
B_QUOTE2
public static final byte B_QUOTE2
- See Also:
- Constant Field Values
-
B_EQUALS
public static final byte B_EQUALS
- See Also:
- Constant Field Values
-
B_STAR
public static final byte B_STAR
- See Also:
- Constant Field Values
-
B_DOT
public static final byte B_DOT
- See Also:
- Constant Field Values
-
B_COMMA
public static final byte B_COMMA
- See Also:
- Constant Field Values
-
B_SEMICOLON
public static final byte B_SEMICOLON
- See Also:
- Constant Field Values
-
B_COLON
public static final byte B_COLON
- See Also:
- Constant Field Values
-
B_AT
public static final byte B_AT
- See Also:
- Constant Field Values
-
B_AMPHERSAND
public static final byte B_AMPHERSAND
- See Also:
- Constant Field Values
-
B_QMARK
public static final byte B_QMARK
- See Also:
- Constant Field Values
-
B_HASH
public static final byte B_HASH
- See Also:
- Constant Field Values
-
B_PLUS
public static final byte B_PLUS
- See Also:
- Constant Field Values
-
B_MINUS
public static final byte B_MINUS
- See Also:
- Constant Field Values
-
B_DASH
public static final byte B_DASH
- See Also:
- Constant Field Values
-
B_SLASH
public static final byte B_SLASH
- See Also:
- Constant Field Values
-
B_RSLASH
public static final byte B_RSLASH
- See Also:
- Constant Field Values
-
B_PERCENT
public static final byte B_PERCENT
- See Also:
- Constant Field Values
-
B_VBAR
public static final byte B_VBAR
- See Also:
- Constant Field Values
-
S_LBRACKET
public static final java.lang.String S_LBRACKET
- See Also:
- Constant Field Values
-
S_RBRACKET
public static final java.lang.String S_RBRACKET
- See Also:
- Constant Field Values
-
S_LBRACE
public static final java.lang.String S_LBRACE
- See Also:
- Constant Field Values
-
S_RBRACE
public static final java.lang.String S_RBRACE
- See Also:
- Constant Field Values
-
S_LPAREN
public static final java.lang.String S_LPAREN
- See Also:
- Constant Field Values
-
S_RPAREN
public static final java.lang.String S_RPAREN
- See Also:
- Constant Field Values
-
S_LT
public static final java.lang.String S_LT
- See Also:
- Constant Field Values
-
S_LE
public static final java.lang.String S_LE
- See Also:
- Constant Field Values
-
S_GT
public static final java.lang.String S_GT
- See Also:
- Constant Field Values
-
S_GE
public static final java.lang.String S_GE
- See Also:
- Constant Field Values
-
S_UNDERSCORE
public static final java.lang.String S_UNDERSCORE
- See Also:
- Constant Field Values
-
S_QUOTE1
public static final java.lang.String S_QUOTE1
- See Also:
- Constant Field Values
-
S_QUOTE2
public static final java.lang.String S_QUOTE2
- See Also:
- Constant Field Values
-
S_EQUALS
public static final java.lang.String S_EQUALS
- See Also:
- Constant Field Values
-
S_STAR
public static final java.lang.String S_STAR
- See Also:
- Constant Field Values
-
S_DOT
public static final java.lang.String S_DOT
- See Also:
- Constant Field Values
-
S_COMMA
public static final java.lang.String S_COMMA
- See Also:
- Constant Field Values
-
S_SEMICOLON
public static final java.lang.String S_SEMICOLON
- See Also:
- Constant Field Values
-
S_COLON
public static final java.lang.String S_COLON
- See Also:
- Constant Field Values
-
S_AMPHERSAND
public static final java.lang.String S_AMPHERSAND
- See Also:
- Constant Field Values
-
S_AT
public static final java.lang.String S_AT
- See Also:
- Constant Field Values
-
S_QMARK
public static final java.lang.String S_QMARK
- See Also:
- Constant Field Values
-
S_HASH
public static final java.lang.String S_HASH
- See Also:
- Constant Field Values
-
S_PLUS
public static final java.lang.String S_PLUS
- See Also:
- Constant Field Values
-
S_MINUS
public static final java.lang.String S_MINUS
- See Also:
- Constant Field Values
-
S_DASH
public static final java.lang.String S_DASH
- See Also:
- Constant Field Values
-
S_SLASH
public static final java.lang.String S_SLASH
- See Also:
- Constant Field Values
-
S_RSLASH
public static final java.lang.String S_RSLASH
- See Also:
- Constant Field Values
-
S_PERCENT
public static final java.lang.String S_PERCENT
- See Also:
- Constant Field Values
-
S_VBAR
public static final java.lang.String S_VBAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getThreadEncoder
public static java.nio.charset.CharsetEncoder getThreadEncoder()
Return a per-thread CharsetEncoder
-
getThreadDecoder
public static java.nio.charset.CharsetDecoder getThreadDecoder()
Return a per-thread CharsetDecoder
-
createEncoder
public static java.nio.charset.CharsetEncoder createEncoder()
Create a UTF-8 encoder
-
createDecoder
public static java.nio.charset.CharsetDecoder createDecoder()
Create a UTF-8 decoder
-
getEncoder
public static java.nio.charset.CharsetEncoder getEncoder()
Get a UTF-8 encoder from the pool (null if pool empty)
-
putEncoder
public static void putEncoder(java.nio.charset.CharsetEncoder encoder)
Add/return a UTF-8 encoder to the pool
-
getDecoder
public static java.nio.charset.CharsetDecoder getDecoder()
Get a UTF-8 decoder from the pool (null if pool empty)
-
putDecoder
public static void putDecoder(java.nio.charset.CharsetDecoder decoder)
Add/return a UTF-8 decoder to the pool
-
allocEncoder
public static java.nio.charset.CharsetEncoder allocEncoder()
Allocate a CharsetEncoder, creating as necessary
-
deallocEncoder
public static void deallocEncoder(java.nio.charset.CharsetEncoder enc)
Deallocate a CharsetEncoder, may increase pool size
-
allocDecoder
public static java.nio.charset.CharsetDecoder allocDecoder()
Allocate a CharsetDecoder, creating as necessary
-
deallocDecoder
public static void deallocDecoder(java.nio.charset.CharsetDecoder dec)
Deallocate a CharsetDecoder, may increase pool size
-
charInArray
public static boolean charInArray(int ch, char[] chars)Is char in the array?
-
encodeAsHex
public static void encodeAsHex(java.lang.StringBuilder buff, char marker, char ch)
-
-