001 package railo.commons.io; 002 003 import java.io.OutputStream; 004 import java.io.Serializable; 005 006 /** 007 * dev null output stream, write data to nirvana 008 */ 009 public final class DevNullOutputStream extends OutputStream implements Serializable { 010 011 public static final DevNullOutputStream DEV_NULL_OUTPUT_STREAM=new DevNullOutputStream(); 012 013 /** 014 * Constructor of the class 015 */ 016 private DevNullOutputStream() {} 017 018 /** 019 * @see java.io.OutputStream#close() 020 */ 021 public void close(){} 022 023 /** 024 * @see java.io.OutputStream#flush() 025 */ 026 public void flush() {} 027 028 /** 029 * @see java.io.OutputStream#write(byte[], int, int) 030 */ 031 public void write(byte[] b, int off, int len) {} 032 033 /** 034 * @see java.io.OutputStream#write(byte[]) 035 */ 036 public void write(byte[] b) {} 037 038 /** 039 * @see java.io.OutputStream#write(int) 040 */ 041 public void write(int b) {} 042 043 }