Interface LineInputStream

All Known Implementing Classes:
ByteBufArrayInputStream, SockIOPool.SockIO

public interface LineInputStream
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Read everything up to and including the end of line.
    int
    read(byte[] buf)
    Read some bytes.
    Read everything up to the next end-of-line.
  • Method Details

    • readLine

      String readLine() throws IOException
      Read everything up to the next end-of-line. Does not include the end of line, though it is consumed from the input.
      Returns:
      All next up to the next end of line.
      Throws:
      IOException
    • clearEOL

      void clearEOL() throws IOException
      Read everything up to and including the end of line.
      Throws:
      IOException
    • read

      int read(byte[] buf) throws IOException
      Read some bytes.
      Parameters:
      buf - The buffer into which read.
      Returns:
      The number of bytes actually read, or -1 if none could be read.
      Throws:
      IOException