001    package org.shiftone.jrat.util.io.nop;
002    
003    
004    import java.io.IOException;
005    import java.io.Writer;
006    
007    
008    /**
009     * @author jeff@shiftone.org (Jeff Drost)
010     */
011    public class NullWriter extends Writer {
012    
013        public static final Writer INSTANCE = new NullWriter();
014    
015        private NullWriter() {
016        }
017    
018    
019        public void write(int c) throws IOException {
020        }
021    
022    
023        public void write(char cbuf[]) throws IOException {
024        }
025    
026    
027        public void write(String str) throws IOException {
028        }
029    
030    
031        public void write(String str, int off, int len) throws IOException {
032        }
033    
034    
035        public void write(char cbuf[], int off, int len) throws IOException {
036        }
037    
038    
039        public void flush() throws IOException {
040        }
041    
042    
043        public void close() throws IOException {
044        }
045    }