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

Method writeCommand

app/src/main/java/com/sun/mail/iap/Protocol.java:323–339  ·  view source on GitHub ↗
(String command, Argument args)

Source from the content-addressed store, hash-verified

321 }
322
323 public String writeCommand(String command, Argument args)
324 throws IOException, ProtocolException {
325 // assert Thread.holdsLock(this);
326 // can't assert because it's called from constructor
327 String tag = tagPrefix + Integer.toString(tagCounter++); // unique tag
328
329 output.writeBytes(tag + " " + command);
330
331 if (args != null) {
332 output.write(' ');
333 args.write(this);
334 }
335
336 output.write(CRLF);
337 output.flush();
338 return tag;
339 }
340
341 /**
342 * Send a command to the server. Collect all responses until either

Callers 7

commandMethod · 0.95
authenticateMethod · 0.80
authloginMethod · 0.80
authplainMethod · 0.80
authntlmMethod · 0.80
authoauth2Method · 0.80
idleStartMethod · 0.80

Calls 4

writeBytesMethod · 0.80
toStringMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected