Class Closure.WritableByteChannelImpl

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel, java.nio.channels.WritableByteChannel
    Enclosing class:
    Closure

    private static class Closure.WritableByteChannelImpl
    extends java.nio.channels.spi.AbstractInterruptibleChannel
    implements java.nio.channels.WritableByteChannel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.channels.WritableByteChannel out  
    • Constructor Summary

      Constructors 
      Constructor Description
      WritableByteChannelImpl​(java.nio.channels.WritableByteChannel out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void implCloseChannel()  
      int write​(java.nio.ByteBuffer src)  
      • Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel

        begin, close, end, 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

        isOpen
    • Field Detail

      • out

        private final java.nio.channels.WritableByteChannel out
    • Constructor Detail

      • WritableByteChannelImpl

        WritableByteChannelImpl​(java.nio.channels.WritableByteChannel out)
    • Method Detail

      • write

        public int write​(java.nio.ByteBuffer src)
                  throws java.io.IOException
        Specified by:
        write in interface java.nio.channels.WritableByteChannel
        Throws:
        java.io.IOException
      • implCloseChannel

        protected void implCloseChannel()
        Specified by:
        implCloseChannel in class java.nio.channels.spi.AbstractInterruptibleChannel