Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diroussel/434516 to your computer and use it in GitHub Desktop.
Save diroussel/434516 to your computer and use it in GitHub Desktop.
--- ConsoleTarget-HEAD.java Fri Jun 11 15:00:00 2010
+++ ConsoleTarget-with-fix.java Fri Jun 04 16:40:01 2010
@@ -22,6 +22,7 @@
* @author Ceki Gülcü
* @author Tom SH Liu
* @author Ruediger Dohna
+ * @author David Roussel
*/
public enum ConsoleTarget {
@@ -31,6 +32,14 @@
System.out.write(b);
}
@Override
+ public void write(byte b[]) throws IOException {
+ System.out.write(b);
+ }
+ @Override
+ public void write(byte b[], int off, int len) throws IOException {
+ System.out.write(b, off, len);
+ }
+ @Override
public void flush() throws IOException {
System.out.flush();
}
@@ -40,6 +49,14 @@
@Override
public void write(int b) throws IOException {
System.err.write(b);
+ }
+ @Override
+ public void write(byte b[]) throws IOException {
+ System.err.write(b);
+ }
+ @Override
+ public void write(byte b[], int off, int len) throws IOException {
+ System.err.write(b, off, len);
}
@Override
public void flush() throws IOException {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment