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