Class BufferedFileChannelInputStream.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • get

        public BufferedFileChannelInputStream get()
                                           throws java.io.IOException
        Constructs a new instance.

        This builder use the aspects Path and buffer size.

        You must provide an origin that can be converted to a Path by this builder, otherwise, this call will throw an UnsupportedOperationException.

        Returns:
        a new instance.
        Throws:
        java.lang.UnsupportedOperationException - if the origin cannot provide a Path.
        java.io.IOException - if an I/O error occurs.
        See Also:
        AbstractOrigin.getPath()