/[classpath]/inetlib/source/gnu/inet/ftp/StreamOutputStream.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/ftp/StreamOutputStream.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:49 2003 UTC
# Line 40  import java.io.OutputStream; Line 40  import java.io.OutputStream;
40  class StreamOutputStream extends DTPOutputStream  class StreamOutputStream extends DTPOutputStream
41  {  {
42    
43          StreamOutputStream(DTP dtp, OutputStream out)    StreamOutputStream(DTP dtp, OutputStream out)
44          {    {
45                  super(dtp, out);      super(dtp, out);
46          }    }
47    
48          public void write(int c)    public void write(int c) throws IOException
49                  throws IOException    {
50          {      if (transferComplete)
51                  if (transferComplete)        return;
52                          return;      super.write(c);
53                  super.write(c);    }
         }  
54    
55          public void write(byte[] b)    public void write(byte[]b) throws IOException
56                  throws IOException    {
57          {      write(b, 0, b.length);
58                  write(b, 0, b.length);    }
         }  
59    
60          public void write(byte[] b, int off, int len)    public void write(byte[]b, int off, int len) throws IOException
61                  throws IOException    {
62          {      if (transferComplete)
63                  if (transferComplete)        return;
64                          return;      super.write(b, off, len);
65                  super.write(b, off, len);    }
         }  
66    
67  }  }

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