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

Diff of /inetlib/source/gnu/inet/nntp/PostStream.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 37  import java.io.IOException; Line 37  import java.io.IOException;
37   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
38   * @version $Revision$ $Date$   * @version $Revision$ $Date$
39   */   */
40  public final class PostStream  public final class PostStream extends FilterOutputStream
   extends FilterOutputStream  
41  {  {
42      
43    NNTPConnection connection;    NNTPConnection connection;
44    boolean isTakethis;    boolean isTakethis;
45    
46    PostStream(NNTPConnection connection, boolean isTakethis)      PostStream(NNTPConnection connection, boolean isTakethis)
47    {    {
48                  super(connection.out);      super(connection.out);
49      this.connection = connection;      this.connection = connection;
50      this.isTakethis = isTakethis;      this.isTakethis = isTakethis;
51    }    }
# Line 55  public final class PostStream Line 54  public final class PostStream
54     * Close the stream.     * Close the stream.
55     * This calls NNTPConnection.postComplete().     * This calls NNTPConnection.postComplete().
56     */     */
57    public void close()    public void close() throws IOException
     throws IOException  
58    {    {
59      super.close();      super.close();
60      if (isTakethis)      if (isTakethis)
# Line 64  public final class PostStream Line 62  public final class PostStream
62      else      else
63        connection.postComplete();        connection.postComplete();
64    }    }
65      
66  }  }

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