All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.muserver.rest.NullOutputStream Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package io.muserver.rest;

import java.io.OutputStream;

class NullOutputStream extends OutputStream {
    static final NullOutputStream INSTANCE = new NullOutputStream();
    private NullOutputStream() {}
    @Override
    public void write(byte[] b) {
    }
    @Override
    public void write(byte[] b, int off, int len) {
    }
    @Override
    public void flush() {
    }
    @Override
    public void close() {
    }
    @Override
    public void write(int b) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy