Class SizeLimitedOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class SizeLimitedOutputStream
    extends org.apache.commons.io.output.CountingOutputStream
    • Constructor Detail

      • SizeLimitedOutputStream

        public SizeLimitedOutputStream​(OutputStream out)
      • SizeLimitedOutputStream

        public SizeLimitedOutputStream​(OutputStream out,
                                       long maxBytes)
    • Method Detail

      • write

        public void write​(byte[] b)
                   throws IOException
        Overrides:
        write in class org.apache.commons.io.output.ProxyOutputStream
        Throws:
        IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws IOException
        Overrides:
        write in class org.apache.commons.io.output.ProxyOutputStream
        Throws:
        IOException
      • write

        public void write​(int b)
                   throws IOException
        Overrides:
        write in class org.apache.commons.io.output.ProxyOutputStream
        Throws:
        IOException