/[classpath]/inetlib/source/gnu/inet/nntp/ArticleStream.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/nntp/ArticleStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dog, Sun Oct 19 08:51:37 2003 UTC revision 1.2 by dog, Sun Oct 19 16:16:50 2003 UTC
# Line 38  import java.io.IOException; Line 38  import java.io.IOException;
38   * @version $Revision$ Date$   * @version $Revision$ Date$
39   */   */
40  public final class ArticleStream  public final class ArticleStream
41    extends FilterInputStream    extends FilterInputStream implements PendingData
   implements PendingData  
42  {  {
43      
44    ArticleStream(InputStream in)    ArticleStream(InputStream in)
45    {    {
46      super(in);      super(in);
# Line 50  public final class ArticleStream Line 49  public final class ArticleStream
49    /**    /**
50     * Read to the end of the article data.     * Read to the end of the article data.
51     */     */
52    public void readToEOF()    public void readToEOF() throws IOException
     throws IOException  
53    {    {
54      if (in.available()==0)      if (in.available() == 0)
55                          return;        return;
56                  byte[] buf = new byte[4096];      byte[] buf = new byte[4096];
57      int ret = 0;      int ret = 0;
58      while (ret!=-1)      while (ret != -1)
59        ret = in.read(buf);          ret = in.read(buf);
60    }    }
61      
62  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26