Class BufferedByteChannelBase

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BufferedByteChannelBase​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer buffer()  
      boolean isOpen()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.nio.channels.Channel

        close
    • Field Detail

      • REUSABLE_BUFF_SIZE_MIN

        protected static final int REUSABLE_BUFF_SIZE_MIN
        See Also:
        Constant Field Values
      • REUSABLE_BUFF_SIZE_MAX

        protected static final int REUSABLE_BUFF_SIZE_MAX
        See Also:
        Constant Field Values
      • bb

        protected final byte[] bb
      • buffer

        protected final java.nio.ByteBuffer buffer
    • Constructor Detail

      • BufferedByteChannelBase

        protected BufferedByteChannelBase​(int size)
    • Method Detail

      • buffer

        public final java.nio.ByteBuffer buffer()
        Specified by:
        buffer in interface BufferedByteChannel
        Returns:
        the wrapped byte buffer which is used for bytes transfer
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface java.nio.channels.Channel