Class LimitedOutputStream

java.lang.Object
java.io.OutputStream
org.apache.druid.io.LimitedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class LimitedOutputStream extends OutputStream
An OutputStream that limits how many bytes can be written. Throws IOException if the limit is exceeded. *Not* thread-safe.