gnu.inet.nntp

Class ArticleStream

Implemented Interfaces:
PendingData

public final class ArticleStream
extends FilterInputStream
implements PendingData

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

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.

Method Details

read

public int read()
            throws IOException

read

public int read(byte[] b)
            throws IOException

read

public int read(byte[] b,
                int off,
                int len)
            throws IOException

readToEOF

public void readToEOF()
            throws IOException
Read to the end of the article data.
Specified by:
readToEOF in interface PendingData