MCPcopy Create free account
hub / github.com/M66B/FairEmail / nstring

Method nstring

app/src/main/java/com/sun/mail/iap/Argument.java:280–287  ·  view source on GitHub ↗

Write out given String as either NIL, QuotedString, or Literal.

(byte[] bytes, Protocol protocol)

Source from the content-addressed store, hash-verified

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 {

Callers 1

writeMethod · 0.95

Calls 3

nastringMethod · 0.95
writeBytesMethod · 0.80
getOutputStreamMethod · 0.65

Tested by

no test coverage detected