com.whalin.MemCached
Interface LineInputStream

All Known Implementing Classes:
ByteBufArrayInputStream, SchoonerSockIO, SchoonerSockIOPool.TCPSockIO, SchoonerSockIOPool.UDPSockIO, SockIOPool.SockIO

public interface LineInputStream

Only be used in memcached multi-get


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

Method Detail

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


Copyright © 2012 Schooner Information Technology. All Rights Reserved.