Write out given String as either NIL, QuotedString, or Literal.
(byte[] bytes, Protocol protocol)
| 278 | * Write out given String as either NIL, QuotedString, or Literal. |
| 279 | */ |
| 280 | private void nstring(byte[] bytes, Protocol protocol) |
| 281 | throws IOException, ProtocolException { |
| 282 | if (bytes == null) { |
| 283 | DataOutputStream os = (DataOutputStream)protocol.getOutputStream(); |
| 284 | os.writeBytes("NIL"); |
| 285 | } else |
| 286 | nastring(bytes, protocol, true); |
| 287 | } |
| 288 | |
| 289 | private void nastring(byte[] bytes, Protocol protocol, boolean doQuote) |
| 290 | throws IOException, ProtocolException { |
no test coverage detected