de.audioattack.io.UncloseablePrintWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console Show documentation
Show all versions of console Show documentation
A replacement for java.io.Console with a System.in and System.out based fallback
/*
* SPDX-FileCopyrightText: 2021 Marc Nause
*
* SPDX-License-Identifier: Apache-2.0
*/
package de.audioattack.io;
import java.io.PrintWriter;
import java.io.Writer;
/* default */ class UncloseablePrintWriter extends PrintWriter {
UncloseablePrintWriter(final Writer writer) {
super(writer, true);
}
@Override
public void close() {
// ignore close
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy