com.danga.MemCached
Interface LineInputStream

All Known Implementing Classes:
ByteBufArrayInputStream, SockIOPool.SockIO

public interface LineInputStream


Method Summary
 void clearEOL()
          Read everything up to and including the end of line.
 int read(byte[] buf)
          Read some bytes.
 java.lang.String readLine()
          Read everything up to the next end-of-line.
 

Method Detail

readLine

java.lang.String readLine()
                          throws java.io.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:
java.io.IOException

clearEOL

void clearEOL()
              throws java.io.IOException
Read everything up to and including the end of line.

Throws:
java.io.IOException

read

int read(byte[] buf)
         throws java.io.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:
java.io.IOException


Copyright ? 2005 - greg whalin