Class DataOutputStreamPlus

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, DataOutputPlus
    Direct Known Subclasses:
    BufferedDataOutputStreamPlus, UnbufferedDataOutputStreamPlus

    public abstract class DataOutputStreamPlus
    extends java.io.OutputStream
    implements DataOutputPlus
    Abstract base class for DataOutputStreams that accept writes from ByteBuffer or Memory and also provide access to the underlying WritableByteChannel associated with their output stream. If no channel is provided by derived classes then a wrapper channel is provided.
    • Field Detail

      • channel

        protected final java.nio.channels.WritableByteChannel channel
    • Constructor Detail

      • DataOutputStreamPlus

        protected DataOutputStreamPlus()
      • DataOutputStreamPlus

        protected DataOutputStreamPlus​(java.nio.channels.WritableByteChannel channel)
    • Method Detail

      • retrieveTemporaryBuffer

        protected static byte[] retrieveTemporaryBuffer​(int minSize)
      • newDefaultChannel

        protected java.nio.channels.WritableByteChannel newDefaultChannel()