001/*
002 * @(#)NullOutputStream.java    1.0 June 2010
003 *
004 * Copyright (c) 2010 Peter Troshin
005 *
006 * JRONN version: 3.1
007 *
008 *        BioJava development code
009 *
010 * This code may be freely distributed and modified under the
011 * terms of the GNU Lesser General Public Licence.  This should
012 * be distributed with the code.  If you do not have a copy,
013 * see:
014 *
015 *      http://www.gnu.org/copyleft/lesser.html
016 *
017 * Copyright for this code is held jointly by the individual
018 * authors.  These should be listed in @author doc comments.
019 *
020 * For more information on the BioJava project and its aims,
021 * or to join the biojava-l mailing list, visit the home page
022 * at:
023 *
024 *      http://www.biojava.org/
025 *
026 */
027
028package org.biojava.nbio.ronn;
029
030import java.io.IOException;
031import java.io.OutputStream;
032
033/**
034 * The stream that void its input
035 *
036 * @author Petr Troshin
037 * @version 1.0
038 * @since 3.0.2
039 */
040public final class NullOutputStream extends OutputStream {
041
042        @Override
043        public void write(final int b) throws IOException {
044                // this methods does nothing.
045                // This is an intention
046        }
047
048}