com.beetstra.jutf7
Class ModifiedUTF7Charset
java.lang.Object
java.nio.charset.Charset
com.beetstra.jutf7.UTF7StyleCharset
com.beetstra.jutf7.ModifiedUTF7Charset
- All Implemented Interfaces:
- Comparable<Charset>
class ModifiedUTF7Charset
- extends UTF7StyleCharset
The character set specified in RFC 3501 to use for IMAP4rev1 mailbox name encoding.
- Author:
- Jaap Beetstra
- See Also:
- RFC 3501
Method Summary |
(package private) boolean |
canEncodeDirectly(char ch)
Tells if a character can be encoded using simple (US-ASCII) encoding or
requires base 64 encoding. |
(package private) byte |
shift()
Returns character used to switch to base 64 encoding. |
(package private) byte |
unshift()
Returns character used to switch from base 64 encoding to simple encoding. |
Methods inherited from class java.nio.charset.Charset |
aliases, availableCharsets, canEncode, compareTo, decode, defaultCharset, displayName, displayName, encode, encode, equals, forName, hashCode, isRegistered, isSupported, name, toString |
ModifiedUTF7Charset
ModifiedUTF7Charset(String name,
String[] aliases)
canEncodeDirectly
boolean canEncodeDirectly(char ch)
- Description copied from class:
UTF7StyleCharset
- Tells if a character can be encoded using simple (US-ASCII) encoding or
requires base 64 encoding.
- Specified by:
canEncodeDirectly
in class UTF7StyleCharset
- Parameters:
ch
- The character
- Returns:
- True if the character can be encoded directly, false otherwise
shift
byte shift()
- Description copied from class:
UTF7StyleCharset
- Returns character used to switch to base 64 encoding.
- Specified by:
shift
in class UTF7StyleCharset
- Returns:
- The shift character
unshift
byte unshift()
- Description copied from class:
UTF7StyleCharset
- Returns character used to switch from base 64 encoding to simple encoding.
- Specified by:
unshift
in class UTF7StyleCharset
- Returns:
- The unshift character
Copyright © 2008 sourceforge. All Rights Reserved.