|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
int |
compareIgnoreCase(char[] c1,
int o1,
char[] c2,
int o2,
int len)
Compare two character arrays ignoring the characters' case |
byte[] |
fromCharacters(char[] c)
Create an array of bytes from an array of characters |
byte[] |
fromCharacters(char[] c,
char[] enc)
Create an array of bytes from an array of characters using the specified encoding |
byte[] |
fromCharacters(char[] c,
int offset,
int length)
Create an array of bytes from an array of characters |
byte[] |
fromCharacters(char[] c,
int offset,
int length,
char[] enc)
Create an array of bytes from an array of characters using the specified encoding |
int |
getDigitValue(char ch,
int radix)
Get the digit value of the character in the specified radix |
boolean |
isDigit(char ch)
Is char a digit? |
boolean |
isLowerCase(char ch)
Is it in lower case? |
boolean |
isUpperCase(char ch)
Is it in upper case? |
boolean |
isWhiteSpace(char ch)
Return true if the character is white space |
char[] |
lowerCaseCopy(char[] c,
int o,
int l)
Copy a char array into a new array, converting all chars to lower case |
int |
readCharacter(InputStream is)
Read a single character from an InputStream |
int |
readCharacters(char[] c,
int off,
int len,
InputStream is)
Read multiple characters from an InputStream into an array |
char[] |
toCharacters(byte[] b)
Create an array of characters from an array of bytes |
char[] |
toCharacters(byte[] b,
char[] enc)
Create an array of characters from an array of bytes using the specified encoding |
char[] |
toCharacters(byte[] b,
int offset,
int length)
Create an array of characters from an array of bytes |
char[] |
toCharacters(byte[] b,
int offset,
int length,
char[] enc)
Create an array of characters from an array of bytes using the specified encoding |
char |
toLowerCase(char ch)
Convert char to lower case |
void |
toLowerCase(char[] ch,
int offset,
int len)
Convert the given array of characters to lower case |
char |
toUpperCase(char ch)
Convert a block of characters to upper case |
void |
toUpperCase(char[] ch,
int offset,
int len)
Convert the given array of characters to upper case This modifies the original array! It is a one-way function, once it has been run you can never go back to what you had so be very careful if you ever call it on a string! |
char[] |
trimWhiteSpace(char[] c,
int o,
int l)
Trim white space off the ends of the string. |
char[] |
upperCaseCopy(char[] c,
int o,
int l)
Copy a char array into a new array, converting all chars to upper case |
void |
writeCharacter(char c,
OutputStream os)
Write a single character to the specified OutputStream |
void |
writeCharacters(char[] c,
int off,
int len,
OutputStream os)
Sends an array of characters directly to a specified OutputStream |
void |
writeCharacters(char[] c,
OutputStream os)
Sends an array of characters directly to a specified OutputStream |
| Method Detail |
public int compareIgnoreCase(char[] c1,
int o1,
char[] c2,
int o2,
int len)
c1 - first character arrayo1 - offset into the first character arrayc2 - second character arrayo2 - offset into the second character arraylen - number of chars to compare
public byte[] fromCharacters(char[] c)
c - a char array
public byte[] fromCharacters(char[] c,
char[] enc)
c - a char arrayenc - The encoding (IGNORED)
public byte[] fromCharacters(char[] c,
int offset,
int length)
c - a char arrayoffset - The offset into the byte arraylength - The number of bytes to convert
public byte[] fromCharacters(char[] c,
int offset,
int length,
char[] enc)
c - a char arrayoffset - The offset into the byte arraylength - The number of bytes to convertenc - The encoding (IGNORED)
public int getDigitValue(char ch,
int radix)
ch - The valueradix - The radix
public boolean isDigit(char ch)
ch - The value
public boolean isLowerCase(char ch)
ch - The value
public boolean isUpperCase(char ch)
ch - The value
public boolean isWhiteSpace(char ch)
ch - The value
public char[] lowerCaseCopy(char[] c,
int o,
int l)
c - The character arrayo - The offset into itl - The length
public int readCharacter(InputStream is)
throws IOException
is - The input stream
IOException - if there is an IO error
public int readCharacters(char[] c,
int off,
int len,
InputStream is)
throws IOException
c - The character array to read intooff - The offset into itlen - The lengthis - The input stream
IOException - if there is a problempublic char[] toCharacters(byte[] b)
b - The byte array
public char[] toCharacters(byte[] b,
char[] enc)
b - The bytesenc - The encoding (currently IGNORED)
public char[] toCharacters(byte[] b,
int offset,
int length)
b - The byte arrayoffset - The offset into the byte arraylength - The number of bytes to convert
public char[] toCharacters(byte[] b,
int offset,
int length,
char[] enc)
b - The byte arrayoffset - The offset into the byte arraylength - The number of bytes to convertenc - The encoding (IGNORED)
public char toLowerCase(char ch)
ch - The value
public void toLowerCase(char[] ch,
int offset,
int len)
This modifies the original array! It is a one-way function, once it has been run you can never go back to what you had so be very careful if you ever call it on a string!
ch - The character arrayoffset - The offset into the character arraylen - The number of characters to convertpublic char toUpperCase(char ch)
ch - The value
public void toUpperCase(char[] ch,
int offset,
int len)
ch - The character arrayoffset - The offset into the character arraylen - The number of characters to convert
public char[] trimWhiteSpace(char[] c,
int o,
int l)
c - The character arrayo - The offset into itl - The length
public char[] upperCaseCopy(char[] c,
int o,
int l)
c - The character arrayo - The offset into itl - The length
public void writeCharacter(char c,
OutputStream os)
throws IOException
c - The characteros - The output stream
IOException - if there is an IO error
public void writeCharacters(char[] c,
OutputStream os)
throws IOException
c - The character arrayos - The output stream
IOException - if there is an IO error
public void writeCharacters(char[] c,
int off,
int len,
OutputStream os)
throws IOException
c - The character arrayoff - The offsetlen - The number of characters to writeos - The output stream
IOException - if there is an IO error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||