|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.common.base.Ascii
@GwtCompatible public final class Ascii
Static methods pertaining to ASCII characters (those in the range of values
0x00
through 0x7F
), and to strings containing such
characters.
ASCII utilities also exist in other classes of this package:
Charsets.US_ASCII
specifies the Charset
of ASCII characters.
CharMatcher.ASCII
matches ASCII characters and provides text processing methods
which operate only on the ASCII characters of a string.
Field Summary | |
---|---|
static byte |
ACK
Acknowledge: A communication control character transmitted by a receiver as an affirmative response to a sender. |
static byte |
BEL
Bell ('\a'): A character for use when there is a need to call for human attention. |
static byte |
BS
Backspace ('\b'): A format effector which controls the movement of the printing position one printing space backward on the same printing line. |
static byte |
CAN
Cancel: A control character used to indicate that the data with which it is sent is in error or is to be disregarded. |
static byte |
CR
Carriage Return ('\r'): A format effector which controls the movement of the printing position to the first printing position on the same printing line. |
static byte |
DC1
Device Controls: Characters for the control of ancillary devices associated with data processing or telecommunication systems, more especially switching devices "on" or "off." (If a single "stop" control is required to interrupt or turn off ancillary devices, DC4 is the preferred assignment.) |
static byte |
DC2
|
static byte |
DC3
|
static byte |
DC4
|
static byte |
DEL
Delete: This character is used primarily to "erase" or "obliterate" erroneous or unwanted characters in perforated tape. |
static byte |
DLE
Data Link Escape: A communication control character which will change the meaning of a limited number of contiguously following characters. |
static byte |
EM
End of Medium: A control character associated with the sent data which may be used to identify the physical end of the medium, or the end of the used, or wanted, portion of information recorded on a medium. |
static byte |
ENQ
Enquiry: A communication control character used in data communication systems as a request for a response from a remote station. |
static byte |
EOT
End of Transmission: A communication control character used to indicate the conclusion of a transmission, which may have contained one or more texts and any associated headings. |
static byte |
ESC
Escape: A control character intended to provide code extension (supplementary characters) in general information interchange. |
static byte |
ETB
End of Transmission Block: A communication control character used to indicate the end of a block of data for communication purposes. |
static byte |
ETX
End of Text: A communication control character used to terminate a sequence of characters started with STX and transmitted as an entity. |
static byte |
FF
Form Feed ('\f'): A format effector which controls the movement of the printing position to the first pre-determined printing line on the next form or page. |
static byte |
FS
File/Group/Record/Unit Separator: These information separators may be used within data in optional fashion, except that their hierarchical relationship shall be: FS is the most inclusive, then GS, then RS, and US is least inclusive. |
static byte |
GS
|
static byte |
HT
Horizontal Tabulation ('\t'): A format effector which controls the movement of the printing position to the next in a series of predetermined positions along the printing line. |
static byte |
LF
Line Feed ('\n'): A format effector which controls the movement of the printing position to the next printing line. |
static int |
MAX
The maximum value of an ASCII character. |
static int |
MIN
The minimum value of an ASCII character. |
static byte |
NAK
Negative Acknowledge: A communication control character transmitted by a receiver as a negative response to the sender. |
static byte |
NL
Alternate name for LF . |
static byte |
NUL
Null ('\0'): The all-zeros character which may serve to accomplish time fill and media fill. |
static byte |
RS
|
static byte |
SI
Shift In: A control character indicating that the code combinations which follow shall be interpreted according to the standard code table. |
static byte |
SO
Shift Out: A control character indicating that the code combinations which follow shall be interpreted as outside of the character set of the standard code table until a Shift In character is reached. |
static byte |
SOH
Start of Heading: A communication control character used at the beginning of a sequence of characters which constitute a machine-sensible address or routing information. |
static byte |
SP
Space: A normally non-printing graphic character used to separate words. |
static byte |
SPACE
Alternate name for SP . |
static byte |
STX
Start of Text: A communication control character which precedes a sequence of characters that is to be treated as an entity and entirely transmitted through to the ultimate destination. |
static byte |
SUB
Substitute: A character that may be substituted for a character which is determined to be invalid or in error. |
static byte |
SYN
Synchronous Idle: A communication control character used by a synchronous transmission system in the absence of any other character to provide a signal from which synchronism may be achieved or retained. |
static byte |
US
|
static byte |
VT
Vertical Tabulation ('\v'): A format effector which controls the movement of the printing position to the next in a series of predetermined printing lines. |
static byte |
XOFF
Transmission off. |
static byte |
XON
Transmission on/off: Although originally defined as DC1, this ASCII control character is now better known as the XON code used for software flow control in serial communications. |
Method Summary | |
---|---|
static boolean |
isLowerCase(char c)
Indicates whether c is one of the twenty-six lowercase ASCII alphabetic characters
between 'a' and 'z' inclusive. |
static boolean |
isUpperCase(char c)
Indicates whether c is one of the twenty-six uppercase ASCII alphabetic characters
between 'A' and 'Z' inclusive. |
static char |
toLowerCase(char c)
If the argument is an uppercase ASCII character returns the lowercase equivalent. |
static String |
toLowerCase(String string)
Returns a copy of the input string in which all uppercase ASCII characters have been converted to lowercase. |
static char |
toUpperCase(char c)
If the argument is a lowercase ASCII character returns the uppercase equivalent. |
static String |
toUpperCase(String string)
Returns a copy of the input string in which all lowercase ASCII characters have been converted to uppercase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte NUL
Although RFC 20 names this as "Null", note that it is distinct from the C/C++ "NULL" pointer.
public static final byte SOH
public static final byte STX
public static final byte ETX
public static final byte EOT
public static final byte ENQ
public static final byte ACK
public static final byte BEL
public static final byte BS
public static final byte HT
public static final byte LF
public static final byte NL
LF
. (LF
is preferred.)
public static final byte VT
public static final byte FF
public static final byte CR
public static final byte SO
public static final byte SI
public static final byte DLE
public static final byte DC1
public static final byte XON
public static final byte DC2
DC1
,
Constant Field Valuespublic static final byte DC3
DC1
,
Constant Field Valuespublic static final byte XOFF
public static final byte DC4
DC1
,
Constant Field Valuespublic static final byte NAK
public static final byte SYN
public static final byte ETB
public static final byte CAN
public static final byte EM
public static final byte SUB
public static final byte ESC
public static final byte FS
public static final byte GS
FS
,
Constant Field Valuespublic static final byte RS
FS
,
Constant Field Valuespublic static final byte US
FS
,
Constant Field Valuespublic static final byte SP
public static final byte SPACE
SP
.
public static final byte DEL
@Beta public static final int MIN
@Beta public static final int MAX
Method Detail |
---|
public static String toLowerCase(String string)
public static char toLowerCase(char c)
public static String toUpperCase(String string)
public static char toUpperCase(char c)
public static boolean isLowerCase(char c)
c
is one of the twenty-six lowercase ASCII alphabetic characters
between 'a'
and 'z'
inclusive. All others (including non-ASCII characters)
return false
.
public static boolean isUpperCase(char c)
c
is one of the twenty-six uppercase ASCII alphabetic characters
between 'A'
and 'Z'
inclusive. All others (including non-ASCII characters)
return false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |