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)
| 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 |
no test coverage detected