Class ComponentContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ComponentContext
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Detail

      • channel

        public java.nio.channels.FileChannel channel​(Descriptor descriptor,
                                                     Component component,
                                                     long size)
                                              throws java.io.IOException
        Returns:
        file channel to be streamed, either original component or hardlinked component.
        Throws:
        java.io.IOException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable