/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @since JavaMail 1.6.0 */ public Argument writeString(String s, Charset charset) { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @exception UnsupportedEncodingException for bad charset */ public Argument writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @exception UnsupportedEncodingException for bad charset */ public Argument writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out */ public void writeString(String s) { items.addElement(new AString(ASCIIUtility.getBytes(s))); }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING */ public void writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.addElement(new AString(s.getBytes(charset))); }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out */ public void writeString(String s) { items.addElement(new AString(ASCIIUtility.getBytes(s))); }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING */ public void writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.addElement(new AString(s.getBytes(charset))); }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @since JavaMail 1.6.0 */ public Argument writeString(String s, Charset charset) { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Write out given string as an ASTRING, depending on the type * of the characters inside the string. The string should * contain only ASCII characters. <p> * * XXX: Hmm .. this should really be called writeASCII() * * @param s String to write out * @return this */ public Argument writeString(String s) { items.add(new AString(ASCIIUtility.getBytes(s))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @since JavaMail 1.6.0 */ public Argument writeString(String s, Charset charset) { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @since JavaMail 1.6.0 */ public Argument writeString(String s, Charset charset) { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @since JavaMail 1.6.0 */ public Argument writeString(String s, Charset charset) { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @exception UnsupportedEncodingException for bad charset */ public Argument writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @exception UnsupportedEncodingException for bad charset */ public Argument writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }
/** * Convert the given string into bytes in the specified * charset, and write the bytes out as an ASTRING * * @param s String to write out * @param charset the charset * @return this * @exception UnsupportedEncodingException for bad charset */ public Argument writeString(String s, String charset) throws UnsupportedEncodingException { if (charset == null) // convenience writeString(s); else items.add(new AString(s.getBytes(charset))); return this; }