@Test public void testEncodeAddressLocalPart() throws Exception { Assert.assertEquals("john.wayne", EncoderUtil .encodeAddressLocalPart("john.wayne")); Assert.assertEquals("\"clint eastwood\"", EncoderUtil .encodeAddressLocalPart("clint eastwood")); }
public static String encodeAddressLocalPart(String localPart) { if (isDotAtomText(localPart)) { return localPart; } else { return quote(localPart); } }
EncoderUtil { public static String encodeAddressLocalPart(String localPart) { if (isDotAtomText(localPart)) { return localPart; } else { return quote(localPart); } } }
EncoderUtil { public static String encodeAddressLocalPart(String localPart) { if (isDotAtomText(localPart)) { return localPart; } else { return quote(localPart); } } private  EncoderUtil(); }
EncoderUtil { public static String encodeAddressLocalPart(String localPart) { if (isDotAtomText(localPart)) { return localPart; } else { return quote(localPart); } } private  EncoderUtil(); static String encodeAddressDisplayName(String displayName); static String encodeAddressLocalPart(String localPart); static String encodeHeaderParameter(String name, String value); static String encodeIfNecessary(String text, Usage usage,
            int usedCharacters); static boolean hasToBeEncoded(String text, int usedCharacters); static String encodeEncodedWord(String text, Usage usage); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters, Charset charset, Encoding encoding); static String encodeB(byte[] bytes); static String encodeQ(byte[] bytes, Usage usage); static void encodeQBinary(final InputStream in, final OutputStream out); static void encodeQ(final InputStream in, final OutputStream out); static void encodeB(final InputStream in, final OutputStream out); static boolean isToken(String str); }
EncoderUtil { public static String encodeAddressLocalPart(String localPart) { if (isDotAtomText(localPart)) { return localPart; } else { return quote(localPart); } } private  EncoderUtil(); static String encodeAddressDisplayName(String displayName); static String encodeAddressLocalPart(String localPart); static String encodeHeaderParameter(String name, String value); static String encodeIfNecessary(String text, Usage usage,
            int usedCharacters); static boolean hasToBeEncoded(String text, int usedCharacters); static String encodeEncodedWord(String text, Usage usage); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters); static String encodeEncodedWord(String text, Usage usage,
            int usedCharacters, Charset charset, Encoding encoding); static String encodeB(byte[] bytes); static String encodeQ(byte[] bytes, Usage usage); static void encodeQBinary(final InputStream in, final OutputStream out); static void encodeQ(final InputStream in, final OutputStream out); static void encodeB(final InputStream in, final OutputStream out); static boolean isToken(String str);  }