FileDocCategorySizeDatePackage
UTF7Charset.javaAPI DocAndroid 1.5 API2840Wed May 06 22:42:46 BST 2009com.beetstra.jutf7

UTF7Charset

public class UTF7Charset extends UTF7StyleCharset

The character set specified in RFC 2152. Two variants are supported using the encodeOptional constructor flag

see
RFC 2152< /a>
author
Jaap Beetstra

Fields Summary
private static final String
BASE64_ALPHABET
private static final String
SET_D
private static final String
SET_O
private static final String
RULE_3
final String
directlyEncoded
Constructors Summary
UTF7Charset(String name, String[] aliases, boolean includeOptional)


          
        super(name, aliases, BASE64_ALPHABET, false);
        if (includeOptional)
            this.directlyEncoded = SET_D + SET_O + RULE_3;
        else
            this.directlyEncoded = SET_D + RULE_3;
    
Methods Summary
booleancanEncodeDirectly(char ch)

        return directlyEncoded.indexOf(ch) >= 0;
    
byteshift()

        return '+";
    
byteunshift()

        return '-";