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

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

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

revision 1.7 by mark, Tue Jan 22 22:27:02 2002 UTC revision 1.8 by mkoch, Tue Nov 4 10:04:16 2003 UTC
# Line 61  public interface Checksum Line 61  public interface Checksum
61    /**    /**
62     * Returns the data checksum computed so far.     * Returns the data checksum computed so far.
63     */     */
64    public long getValue ();    long getValue();
65    
66    /**    /**
67     * Resets the data checksum as if no update was ever called.     * Resets the data checksum as if no update was ever called.
68     */     */
69    public void reset ();    void reset();
70    
71    /**    /**
72     * Adds one byte to the data checksum.     * Adds one byte to the data checksum.
73     *     *
74     * @param bval the data value to add. The high byte of the int is ignored.     * @param bval the data value to add. The high byte of the int is ignored.
75     */     */
76    public void update (int bval);    void update (int bval);
77    
78    /**    /**
79     * Adds the byte array to the data checksum.     * Adds the byte array to the data checksum.
# Line 82  public interface Checksum Line 82  public interface Checksum
82     * @param off the offset in the buffer where the data starts     * @param off the offset in the buffer where the data starts
83     * @param len the length of the data     * @param len the length of the data
84     */     */
85    public void update (byte[] buf, int off, int len);    void update (byte[] buf, int off, int len);
86  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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