org.apache.geronimo.javamail.transport.nntp
Class StringListInputStream
java.lang.Object
java.io.InputStream
org.apache.geronimo.javamail.transport.nntp.StringListInputStream
- All Implemented Interfaces:
- Closeable
public class StringListInputStream
- extends InputStream
- Version:
- $Rev: 437941 $ $Date: 2006-08-28 23:56:02 -0400 (Mon, 28 Aug 2006) $
Method Summary |
protected void |
nextBuffer()
Step to the next buffer of string data. |
int |
read()
Just override the single byte read version, which handles all of the
lineend markers correctly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lines
protected List lines
nextLine
protected int nextLine
StringListInputStream
public StringListInputStream(List lines)
throws IOException
- Throws:
IOException
read
public int read()
throws IOException
- Just override the single byte read version, which handles all of the
lineend markers correctly.
- Specified by:
read
in class InputStream
- Returns:
- The next byte from the stream or -1 if we've hit the EOF.
- Throws:
IOException
nextBuffer
protected void nextBuffer()
throws IOException
- Step to the next buffer of string data.
- Throws:
IOException
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.