Class BlockingBufferedOutputStream

java.lang.Object
java.io.OutputStream
ortus.boxlang.web.util.BlockingBufferedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class BlockingBufferedOutputStream extends OutputStream
A blocking buffered output stream that writes to a StreamSinkChannel. We do not use the built-in BufferedOutputStream because it does not block when the channel is not writable.
  • Constructor Details

    • BlockingBufferedOutputStream

      public BlockingBufferedOutputStream(org.xnio.channels.StreamSinkChannel channel)
      Create a new BlockingBufferedOutputStream
      Parameters:
      channel - The StreamSinkChannel
  • Method Details