/[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.2 by dog, Sun Oct 19 16:16:49 2003 UTC revision 1.3 by dog, Mon Nov 10 12:29:56 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) throws IOException
49        {
50            if (transferComplete)
51                return;
52            out.write(c);
53        }
54    
55    public void write(int c) throws IOException      public void write(byte[] b) throws IOException
56    {      {
57      if (transferComplete)          write(b, 0, b.length);
58        return;      }
     super.write(c);  
   }  
59    
60    public void write(byte[]b) throws IOException      public void write(byte[] b, int off, int len) throws IOException
61    {      {
62      write(b, 0, b.length);          if (transferComplete)
63    }              return;
64            out.write(b, off, len);
65    public void write(byte[]b, int off, int len) throws IOException      }
   {  
     if (transferComplete)  
       return;  
     super.write(b, off, len);  
   }  
66    
67  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26