Searched refs:charset (Results 1 - 25 of 28) sorted by relevance

12

/javamail/mail/src/main/java/javax/mail/util/
H A DByteArrayDataSource.java121 * The MIME type should include a <code>charset</code>
122 * parameter specifying the charset to be used for the
124 * default charset is used.
131 String charset = null;
134 charset = ct.getParameter("charset");
138 charset = MimeUtility.javaCharset(charset);
139 if (charset == null)
140 charset
[all...]
/javamail/gimap/src/main/java/com/sun/mail/gimap/protocol/
H A DGmailSearchSequence.java61 public Argument generateSequence(SearchTerm term, String charset) argument
68 return gmailRawSearch((GmailRawSearchTerm)term, charset);
70 return super.generateSequence(term, charset);
89 protected Argument gmailRawSearch(GmailRawSearchTerm term, String charset) argument
93 result.writeString(term.getPattern(), charset);
/javamail/mail/src/main/java/com/sun/mail/imap/protocol/
H A DSearchSequence.java69 * @param charset charset for the search
74 public Argument generateSequence(SearchTerm term, String charset) argument
81 return and((AndTerm)term, charset);
83 return or((OrTerm)term, charset);
85 return not((NotTerm)term, charset);
87 return header((HeaderTerm)term, charset);
92 return from(fterm.getAddress().toString(), charset);
96 return from(fterm.getPattern(), charset);
102 charset);
185 and(AndTerm term, String charset) argument
197 or(OrTerm term, String charset) argument
245 not(NotTerm term, String charset) argument
266 header(HeaderTerm term, String charset) argument
275 messageid(MessageIDTerm term, String charset) argument
319 from(String address, String charset) argument
327 recipient(Message.RecipientType type, String address, String charset) argument
345 subject(SubjectTerm term, String charset) argument
354 body(BodyTerm term, String charset) argument
[all...]
/javamail/mail/src/test/java/javax/mail/internet/
H A DNonAsciiFileNames.java52 private static String charset; field in class:NonAsciiFileNames
57 charset = System.getProperty("mail.mime.charset");
58 System.setProperty("mail.mime.charset", "utf-8");
97 if (charset == null)
98 System.clearProperty("mail.mime.charset");
100 System.setProperty("mail.mime.charset", charset);
H A DNonAsciiBoundaryTest.java45 import java.nio.charset.Charset;
H A DAllowEncodedMessages.java45 import java.nio.charset.Charset;
H A DInternetHeadersTest.java45 import java.nio.charset.Charset;
H A DRestrictEncodingTest.java45 import java.nio.charset.Charset;
H A DMimeBodyPartTest.java45 import java.nio.charset.Charset;
H A DMimeMultipartPropertyTest.java47 import java.nio.charset.Charset;
H A DModifyMessageTest.java45 import java.nio.charset.Charset;
H A DMimeMessageTest.java45 import java.nio.charset.Charset;
/javamail/mail/src/main/java/javax/mail/internet/
H A DMimePart.java204 * using the platform's default charset. The charset is also
205 * used to set the "charset" parameter. <p>
209 * to scan all the characters to determine what charset to
212 * If the charset is already known, use the
213 * <code>setText</code> method that takes the charset parameter.
217 * @see #setText(String text, String charset)
224 * charset. The given Unicode string will be charset-encoded
225 * using the specified charset
232 setText(String text, String charset) argument
248 setText(String text, String charset, String subtype) argument
[all...]
H A DParameterList.java110 * Only the first segment contains the charset and language
129 * first segment appears we don't know what charset to use to
132 * to a String using the specified charset in the
173 String charset; field in class:ParameterList.Value
377 v.value = decodeBytes(v.value, v.charset);
427 String charset = null;
440 // the first segment specifies the charset
442 charset = vv.charset;
444 if (charset
585 set(String name, String value, String charset) argument
783 encodeValue(String value, String charset) argument
850 decodeBytes(String value, String charset) argument
[all...]
H A DMimeUtility.java74 * yet a widely used charset, one might want to first charset-encode
75 * the String into another charset and then do the transfer-encoding.
119 * In addition, the <code>mail.mime.charset</code> System property can
120 * be used to specify the default MIME charset to use for encoded words
121 * and text parts that don't otherwise specify a charset. Normally, the
122 * default MIME charset is derived from the default Java charset, as
125 * charset. In cases where the default MIME charset t
532 encodeText(String text, String charset, String encoding) argument
709 encodeWord(String word, String charset, String encoding) argument
722 encodeWord(String string, String charset, String encoding, boolean encodingWord) argument
1236 javaCharset(String charset) argument
1258 mimeCharset(String charset) argument
[all...]
H A DMimeBodyPart.java288 * with <strong>"text/plain; charset=foobar"</strong>. <p>
453 * be encoded using the platform's default charset. If the
457 * Note that if the charset encoding process fails, a
469 * in the exception chain if the charset
482 * be encoded using the specified charset. If the description
486 * Note that if the charset encoding process fails, a
492 * @param charset Charset for encoding
499 * in the exception chain if the charset
502 public void setDescription(String description, String charset) argument
504 setDescription(this, description, charset);
755 setText(String text, String charset) argument
773 setText(String text, String charset, String subtype) argument
1174 setText(MimePart part, String text, String charset, String subtype) argument
1232 setDescription(MimePart part, String description, String charset) argument
[all...]
H A DMimeMessage.java797 * platform's default charset. If the subject contains only
805 * Note that if the charset encoding process fails, a
825 * charset. If the subject contains only US-ASCII characters, no
832 * Note that if the charset encoding process fails, a
838 * @param charset The charset
846 public void setSubject(String subject, String charset) argument
853 MimeUtility.encodeText(subject, charset, null)));
1005 * with <strong>"text/plain; charset=foobar"</strong>. <p>
1156 * be encoded using the platform's default charset
1205 setDescription(String description, String charset) argument
1553 setText(String text, String charset) argument
1571 setText(String text, String charset, String subtype) argument
[all...]
H A DInternetAddress.java159 * can't be encoded in the given charset
172 * @param charset the MIME charset for the name
174 * can't be encoded in the given charset
176 public InternetAddress(String address, String personal, String charset) argument
179 setPersonal(personal, charset);
214 * charset as per RFC 2047. If the name contains only US-ASCII
218 * @param charset MIME charset to be used to encode the name as
221 * @exception UnsupportedEncodingException if the charset encodin
224 setPersonal(String name, String charset) argument
[all...]
/javamail/mail/src/main/java/com/sun/mail/handlers/
H A Dtext_plain.java83 * An unknown charset of the form ISO-XXX-XXX will cause
139 * An unknown charset of the form ISO-XXX-XXX will cause
153 * some charset converts, such as the iso-2022-jp converter,
164 String charset = ct.getParameter("charset");
165 if (charset == null)
166 // If the charset parameter is absent, use US-ASCII.
167 charset = "us-ascii";
168 return MimeUtility.javaCharset(charset);
/javamail/dsn/src/main/java/com/sun/mail/dsn/
H A Dtext_rfc822headers.java113 * An unknown charset of the form ISO-XXX-XXX will cause
182 * An unknown charset of the form ISO-XXX-XXX will cause
200 String charset = ct.getParameter("charset");
201 if (charset == null)
202 // If the charset parameter is absent, use US-ASCII.
203 charset = "us-ascii";
204 return MimeUtility.javaCharset(charset);
/javamail/mail/src/main/java/com/sun/mail/iap/
H A DArgument.java93 * charset, and write the bytes out as an ASTRING
96 * @param charset the charset
98 * @exception UnsupportedEncodingException for bad charset
100 public Argument writeString(String s, String charset) argument
102 if (charset == null) // convenience
105 items.add(new AString(s.getBytes(charset)));
128 * charset, and write the bytes out as an NSTRING
131 * @param charset the charset
136 writeNString(String s, String charset) argument
[all...]
/javamail/mail/src/test/java/com/sun/mail/imap/protocol/
H A DIMAPProtocolTest.java44 import java.nio.charset.Charset;
/javamail/mail/src/test/java/com/sun/mail/util/
H A DContentTypeCleaner.java44 import java.nio.charset.Charset;
86 assertEquals("text/plain; charset=iso-8859-1", bp.getContentType());
120 "Content-Type: text/plain; charset=iso-8859-1\n" +
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DSunV3BodyPart.java219 * be encoded using the platform's default charset. If the
239 * be encoded using the specified charset. If the description
244 * @param charset Charset for encoding
250 public void setDescription(String description, String charset) argument
/javamail/mail/src/main/java/com/sun/mail/util/logging/
H A DMailHandler.java51 import java.nio.charset.Charset;
153 * {@linkplain java.nio.charset.Charset#name() character set} to use for the
1050 if (!java.nio.charset.Charset.isSupported(e)) {
1053 } catch (java.nio.charset.IllegalCharsetNameException icne) {
1623 final String charset = getEncodingName();
1625 = new ByteArrayInputStream(head.getBytes(charset));
1778 * @return the java charset name, never null.
1782 String charset = getEncoding();
1783 if (charset == null) {
1784 charset
[all...]

Completed in 2162 milliseconds

12