Interface NioReadHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface NioReadHandler
    Class NioReader.
    • Method Detail

      • read

        void read​(NioInputStream in)
           throws IOException
        Called every time it is possible to read from the input stream without blocking. The last time this method is called, the value of in.isFinished() must be true to indicate that all the stream has been read.
        Parameters:
        in - input stream.
        Throws:
        IOException