/[classpath]/classpath/java/util/zip/Deflater.java
ViewVC logotype

Diff of /classpath/java/util/zip/Deflater.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by tromey, Thu Apr 29 15:47:26 2004 UTC revision 1.5.2.1 by tromey, Wed Apr 20 20:32:53 2005 UTC
# Line 1  Line 1 
1  /* Deflater.java - Compress a data stream  /* Deflater.java - Compress a data stream
2     Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.     Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 150  public class Deflater Line 150  public class Deflater
150    private int state;    private int state;
151    
152    /** The total bytes of output written. */    /** The total bytes of output written. */
153    private int totalOut;    private long totalOut;
154    
155    /** The pending output. */    /** The pending output. */
156    private DeflaterPending pending;    private DeflaterPending pending;
# Line 242  public class Deflater Line 242  public class Deflater
242    /**    /**
243     * Gets the number of input bytes processed so far.     * Gets the number of input bytes processed so far.
244     */     */
245      @Deprecated
246    public int getTotalIn()    public int getTotalIn()
247    {    {
248        return (int) engine.getTotalIn();
249      }
250    
251      /**
252       * Gets the number of input bytes processed so far.
253       * @since 1.5
254       */
255      public long getBytesRead()
256      {
257      return engine.getTotalIn();      return engine.getTotalIn();
258    }    }
259    
260    /**    /**
261     * Gets the number of output bytes so far.     * Gets the number of output bytes so far.
262     */     */
263      @Deprecated
264    public int getTotalOut()    public int getTotalOut()
265    {    {
266        return (int) totalOut;
267      }
268    
269      /**
270       * Gets the number of output bytes so far.
271       * @since 1.5
272       */
273      public long getBytesWritten()
274      {
275      return totalOut;      return totalOut;
276    }    }
277    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

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