/*
 * Copyright 2003,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.commons.io.output;
 
import java.io.IOException;
import java.io.OutputStream;

/**
 * This OutputStream writes all data to the famous <b>/dev/null</b>.
 * @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a>
 * @version $Id: NullOutputStream.java,v 1.4 2004/02/23 04:40:29 bayard Exp $
 */
public class NullOutputStream extends OutputStream {

    /**
     * @see java.io.OutputStream#write(byte[], int, int)
     */
    public synchronized void write(byte[] b, int off, int len) {
        //to /dev/null
    }

    /**
     * @see java.io.OutputStream#write(int)
     */
    public synchronized void write(int b) {
        //to /dev/null
    }

    /**
     * @see java.io.OutputStream#write(byte[])
     */
    public void write(byte[] b) throws IOException {
        //to /dev/null
    }

}

@@ -17,13 +17,13 @@
 2003
-,2004
+-2005
  The
@@ -617,17 +617,16 @@
 se.%0A */%0A
-%0A
 package 
@@ -795,53 +795,140 @@
 %0A * 
-@author %3Ca href=%22mailto:jeremias@apache.org%22%3E
+%3Cp%3E%0A * This output stream has no destination (file/socket etc.) and all%0A * bytes written to it are ignored and lost.%0A * %0A * @author 
 Jere
@@ -942,12 +942,8 @@
 erki
-%3C/a%3E
 %0A * 
@@ -958,69 +958,8 @@
  $Id
-: NullOutputStream.java,v 1.4 2004/02/23 04:40:29 bayard Exp 
 $%0A *
@@ -1094,37 +1094,24 @@
 %0A    public 
-synchronized 
 void write(b
@@ -1221,32 +1221,32 @@
 te(int)%0A     */%0A
+
     public synch
@@ -1244,21 +1244,8 @@
 lic 
-synchronized 
 void

Remove synchronized from methods, general tidy bug 33481