gnu.inet.nntp
Class ArticleStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by gnu.inet.nntp.ArticleStream
All Implemented Interfaces:
PendingData, java.io.Closeable

public final class ArticleStream
extends java.io.FilterInputStream
implements PendingData

A stream that can be told to read to the end of its data.

Author:
Chris Burdess

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void readToEOF()
          Read to the end of the article data.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

readToEOF

public void readToEOF()
               throws java.io.IOException
Read to the end of the article data.

Specified by:
readToEOF in interface PendingData
Throws:
java.io.IOException - if an I/O error occurred


© Copyright 2003 The Free Software Foundation, all rights reserved