MCPcopy Create free account
hub / github.com/GateNLP/gate-core / write

Method write

src/main/java/gate/gui/LogArea.java:596–604  ·  view source on GitHub ↗

Writes an int which must be a the code of a char, into the LogArea, using the style specified in constructor. The int is downcast to a byte.

(int charCode)

Source from the content-addressed store, hash-verified

594 * the style specified in constructor. The int is downcast to a byte.
595 */
596 @Override
597 public void write(int charCode) {
598 // charCode int must be a char. Let us be sure of that
599 charCode &= 0x000000FF;
600 // Convert the byte to a char before put it into the log area
601 char c = (char)charCode;
602 // Insert it in the log Area
603 SwingUtilities.invokeLater(new SwingWriter(String.valueOf(c), style));
604 }// write(int charCode)
605
606 /**
607 * Writes an array of bytes into the LogArea, using the style specified in

Callers 4

actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
printMethod · 0.45

Calls 1

printStackTraceMethod · 0.45

Tested by

no test coverage detected