/[classpath]/classpath/java/io/PushbackInputStream.java
ViewVC logotype

Diff of /classpath/java/io/PushbackInputStream.java

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

revision 1.16 by mark, Sat Jul 2 20:32:38 2005 UTC revision 1.17 by green, Thu Sep 15 15:25:34 2005 UTC
# Line 116  public class PushbackInputStream extends Line 116  public class PushbackInputStream extends
116     */     */
117    public int available() throws IOException    public int available() throws IOException
118    {    {
119      return (buf.length - pos) + super.available();      try
120          {
121            return (buf.length - pos) + super.available();
122          }
123        catch (NullPointerException npe)
124          {
125            throw new IOException ("Stream closed");
126          }
127    }    }
128    
129    /**    /**

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

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