org.apache.geronimo.javamail.transport.nntp
Class StringListInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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) $

Field Summary
protected  List lines
           
protected  int nextLine
           
 
Constructor Summary
StringListInputStream(List lines)
           
 
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.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

protected List lines

nextLine

protected int nextLine
Constructor Detail

StringListInputStream

public StringListInputStream(List lines)
                      throws IOException
Throws:
IOException
Method Detail

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.