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
 void readToEOF()
          Read to the end of the article data.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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