Interface StreamChannel<T extends java.nio.Buffer>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void endStream()
      Terminates the underlying data stream and optionally writes a closing sequence.
      int write​(T src)
      Writes data from the data container into the underlying data stream.
    • Method Detail

      • write

        int write​(T src)
           throws java.io.IOException
        Writes data from the data container into the underlying data stream.
        Parameters:
        src - source of data
        Returns:
        The number of elements written, possibly zero
        Throws:
        java.io.IOException
      • endStream

        void endStream()
                throws java.io.IOException
        Terminates the underlying data stream and optionally writes a closing sequence.
        Throws:
        java.io.IOException