Write out given string as an NSTRING, depending on the type of the characters inside the string. The string should contain only ASCII characters. @param s String to write out @return this @since JavaMail 1.5.1
(String s)
| 111 | * @since JavaMail 1.5.1 |
| 112 | */ |
| 113 | public Argument writeNString(String s) { |
| 114 | if (s == null) |
| 115 | items.add(new NString(null)); |
| 116 | else |
| 117 | items.add(new NString(ASCIIUtility.getBytes(s))); |
| 118 | return this; |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Convert the given string into bytes in the specified |
no test coverage detected