org.openjena.atlas.lib
Class Chars

java.lang.Object
  extended by org.openjena.atlas.lib.Chars

public class Chars
extends Object


Field Summary
static byte B_AMPHERSAND
           
static byte B_AT
           
static byte B_COLON
           
static byte B_COMMA
           
static byte B_CR
           
static byte B_DOT
           
static byte B_EQUALS
           
static byte B_GT
           
static byte B_HASH
           
static byte B_LBRACE
           
static byte B_LBRACKET
           
static byte B_LPAREN
           
static byte B_LT
           
static byte B_MINUS
           
static byte B_NL
           
static byte B_PLUS
           
static byte B_QMARK
           
static byte B_QUOTE1
           
static byte B_QUOTE2
           
static byte B_RBRACE
           
static byte B_RBRACKET
           
static byte B_RPAREN
           
static byte B_RSLASH
           
static byte B_SEMICOLON
           
static byte B_SLASH
           
static byte B_STAR
           
static byte B_UNDERSCORE
           
static char BOM
           
static char CH_AMPHERSAND
           
static char CH_AT
           
static char CH_COLON
           
static char CH_COMMA
           
static char CH_DOT
           
static char CH_EQUALS
           
static char CH_GT
           
static char CH_HASH
           
static char CH_LBRACE
           
static char CH_LBRACKET
           
static char CH_LPAREN
           
static char CH_LT
           
static char CH_MINUS
           
static char CH_PLUS
           
static char CH_QMARK
           
static char CH_QUOTE1
           
static char CH_QUOTE2
           
static char CH_RBRACE
           
static char CH_RBRACKET
           
static char CH_RPAREN
           
static char CH_RSLASH
           
static char CH_SEMICOLON
           
static char CH_SLASH
           
static char CH_STAR
           
static char CH_UNDERSCORE
           
static char CH_ZERO
           
static Charset charsetASCII
           
static Charset charsetUTF8
           
static char CR
           
static char[] digits10
           
static int EOF
          End of file - not a Unicode codepoint
static char[] hexDigitsLC
          Hex digits : lower case
static char[] hexDigitsUC
          Hex digits : upper case
static char NL
           
static int UNSET
          undefined character (exact meaning depends on use) - not a Unicode codepoint
 
Method Summary
static CharsetDecoder allocDecoder()
          Allocate a CharsetDecoder, creating as necessary
static CharsetEncoder allocEncoder()
          Allocate a CharsetEncoder, creating as necessary
static CharsetDecoder createDecoder()
          Create a UTF-8 decoder
static CharsetEncoder createEncoder()
          Create a UTF-8 encoder
static void deallocDecoder(CharsetDecoder dec)
          Deallocate a CharsetDecoder, may increase pool size
static void deallocEncoder(CharsetEncoder enc)
          Deallocate a CharsetEncoder, may increase pool size
static void encodeAsHex(StringBuilder buff, char marker, char ch)
           
static CharsetDecoder getDecoder()
          Get a UTF-8 decoder from the pool (null if pool empty)
static CharsetEncoder getEncoder()
          Get a UTF-8 encoder from the pool (null if pool empty)
static void putDecoder(CharsetDecoder decoder)
          Add/return a UTF-8 decoder to the pool
static void putEncoder(CharsetEncoder encoder)
          Add/return a UTF-8 encoder to the pool
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Charset charsetUTF8

charsetASCII

public static final 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

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

CR

public static final char CR
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_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

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_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
Method Detail

createEncoder

public static CharsetEncoder createEncoder()
Create a UTF-8 encoder


createDecoder

public static CharsetDecoder createDecoder()
Create a UTF-8 decoder


getEncoder

public static CharsetEncoder getEncoder()
Get a UTF-8 encoder from the pool (null if pool empty)


putEncoder

public static void putEncoder(CharsetEncoder encoder)
Add/return a UTF-8 encoder to the pool


getDecoder

public static CharsetDecoder getDecoder()
Get a UTF-8 decoder from the pool (null if pool empty)


putDecoder

public static void putDecoder(CharsetDecoder decoder)
Add/return a UTF-8 decoder to the pool


allocEncoder

public static CharsetEncoder allocEncoder()
Allocate a CharsetEncoder, creating as necessary


deallocEncoder

public static void deallocEncoder(CharsetEncoder enc)
Deallocate a CharsetEncoder, may increase pool size


allocDecoder

public static CharsetDecoder allocDecoder()
Allocate a CharsetDecoder, creating as necessary


deallocDecoder

public static void deallocDecoder(CharsetDecoder dec)
Deallocate a CharsetDecoder, may increase pool size


encodeAsHex

public static void encodeAsHex(StringBuilder buff,
                               char marker,
                               char ch)


Licenced under the Apache License, Version 2.0