MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / sendMessage

Method sendMessage

ij/src/main/java/ij/astro/ipc/IPCClient.java:39–47  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

37 }
38
39 public void sendMessage(String s) throws IOException {
40 synchronized (socketChannel) {
41 ByteBuffer buf = ByteBuffer.wrap((s + "\n").getBytes(StandardCharsets.UTF_8));
42
43 while (buf.hasRemaining()) {
44 socketChannel.write(buf);
45 }
46 }
47 }
48
49 @Override
50 public void close() throws IOException {

Callers 1

sendArgumentsMethod · 0.80

Calls 3

writeMethod · 0.65
wrapMethod · 0.45
getBytesMethod · 0.45

Tested by

no test coverage detected