gnu.inet.nntp
Class PostStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by gnu.inet.nntp.PostStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public final class PostStream
extends java.io.FilterOutputStream

A stream to which article contents should be written.

Author:
Chris Burdess

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Method Summary
 void close()
          Close the stream.
 void write(byte[] bytes)
           
 void write(byte[] bytes, int pos, int len)
           
 void write(int c)
           
 
Methods inherited from class java.io.FilterOutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(byte[] bytes)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

write

public void write(byte[] bytes,
                  int pos,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the stream. This calls NNTPConnection.postComplete().

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterOutputStream
Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved