1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
David Inglis 2004-03-03 20:45:47 +00:00
parent f99928d2d4
commit 3a2ea22ff2

View file

@ -31,11 +31,17 @@ public class ConsoleOutputStream extends OutputStream {
fBuffer.setLength (0);
}
/**
* Implements buffered output at the lowest level
* @see OutputStream#write
*/
public synchronized void write(int c) throws IOException {
fBuffer.append((char) c);
byte ascii[] = new byte[1];
ascii[0] = (byte) c;
fBuffer.append(new String(ascii));
}
public synchronized void write(byte[] b) throws IOException {
fBuffer.append(new String(b));
}
public synchronized void write(byte[] b, int off, int len) throws IOException {
fBuffer.append(new String(b, off, len));
}
}