From 19856bc34600ce6ddb71bfceee428da45d658427 Mon Sep 17 00:00:00 2001 From: Topher Lamey Date: Tue, 21 Jun 2011 14:13:23 -0600 Subject: [PATCH] Changes for protobuf support --- classpath/java/io/FilterOutputStream.java | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 classpath/java/io/FilterOutputStream.java diff --git a/classpath/java/io/FilterOutputStream.java b/classpath/java/io/FilterOutputStream.java new file mode 100644 index 0000000000..436bc42d3d --- /dev/null +++ b/classpath/java/io/FilterOutputStream.java @@ -0,0 +1,36 @@ +/* Copyright (c) 2011, Avian Contributors + + Permission to use, copy, modify, and/or distribute this software + for any purpose with or without fee is hereby granted, provided + that the above copyright notice and this permission notice appear + in all copies. + + There is NO WARRANTY for this software. See license.txt for + details. */ + +package java.io; + +public class FilterOutputStream extends OutputStream { + private OutputStream os; + + public void close() throws IOException { + os.close(); + } + + public void flush() throws IOException { + os.flush(); + } + + public void write(byte[] b) throws IOException { + os.write(b); + } + + public void write(byte[] b, int off, int len) throws IOException { + os.write(b, off, len); + } + + public void write(int b) throws IOException { + os.write(b); + } + +}