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

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

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

revision 1.15 by rsdio, Sun Nov 7 20:27:47 2004 UTC revision 1.16 by mkoch, Tue Nov 23 13:03:42 2004 UTC
# Line 71  public class InflaterInputStream extends Line 71  public class InflaterInputStream extends
71     */     */
72    protected int len;    protected int len;
73    
74    /*    // We just use this if we are decoding one byte at a time with the
75     * We just use this if we are decoding one byte at a time with the read() call    // read() call.
    */  
76    private byte[] onebytebuffer = new byte[1];    private byte[] onebytebuffer = new byte[1];
77    
78    /**    /**
# Line 168  public class InflaterInputStream extends Line 167  public class InflaterInputStream extends
167     */     */
168    public int read() throws IOException    public int read() throws IOException
169    {    {
170      int nread = read(onebytebuffer, 0, 1); //read one byte      int nread = read(onebytebuffer, 0, 1);
       
171      if (nread > 0)      if (nread > 0)
172        return onebytebuffer[0] & 0xff;        return onebytebuffer[0] & 0xff;
       
173      return -1;      return -1;
174    }    }
175    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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