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

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

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

revision 1.13 by mkoch, Thu Oct 21 21:07:15 2004 UTC revision 1.14 by mkoch, Fri Oct 22 18:02:06 2004 UTC
# Line 106  public class ZipInputStream extends Infl Line 106  public class ZipInputStream extends Infl
106        }        }
107    }    }
108        
109    private final int readLeByte() throws IOException    private int readLeByte() throws IOException
110    {    {
111      if (avail <= 0)      if (avail <= 0)
112        {        {
# Line 120  public class ZipInputStream extends Infl Line 120  public class ZipInputStream extends Infl
120    /**    /**
121     * Read an unsigned short in little endian byte order.     * Read an unsigned short in little endian byte order.
122     */     */
123    private final int readLeShort() throws IOException    private int readLeShort() throws IOException
124    {    {
125      return readLeByte() | (readLeByte() << 8);      return readLeByte() | (readLeByte() << 8);
126    }    }
# Line 128  public class ZipInputStream extends Infl Line 128  public class ZipInputStream extends Infl
128    /**    /**
129     * Read an int in little endian byte order.     * Read an int in little endian byte order.
130     */     */
131    private final int readLeInt() throws IOException    private int readLeInt() throws IOException
132    {    {
133      return readLeShort() | (readLeShort() << 16);      return readLeShort() | (readLeShort() << 16);
134    }    }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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