Module org.sejda.io
Package org.sejda.io

Class BufferedCountingChannelWriter

java.lang.Object
org.sejda.io.BufferedCountingChannelWriter
All Implemented Interfaces:
Closeable, AutoCloseable

public class BufferedCountingChannelWriter extends Object implements Closeable
Component providing methods to write to a CountingWritableByteChannel. This implementation is buffered and bytes are flushed to the CountingWritableByteChannel only when the buffer is full. The buffer size is configurable using the OUTPUT_BUFFER_SIZE_PROPERTY property.
Author:
Andrea Vacondio