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

Diff of /classpath/java/io/StreamTokenizer.java

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

revision 1.12 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.13 by mark, Tue Jul 16 20:43:51 2002 UTC
# Line 1  Line 1 
1  /* StreamTokenizer.java -- parses streams of characters into tokens  /* StreamTokenizer.java -- parses streams of characters into tokens
2     Copyright (C) 1998, 1999, 2000, 2001  Free Software Foundation     Copyright (C) 1998, 1999, 2000, 2001, 2002  Free Software Foundation
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 554  public class StreamTokenizer Line 554  public class StreamTokenizer
554    }    }
555    
556    /**    /**
557     * This method returns the current line number.  Note that if the     * Puts the current token back into the StreamTokenizer so
558     * <code>pushBack()</code> method is called, it has no effect on the     * <code>nextToken</code> will return the same value on the next call.
559     * line number returned by this method.     * May cause the lineno method to return an incorrect value
560     *     * if lineno is called before the next call to nextToken.
    * @return The current line number  
561     */     */
562    public void pushBack()    public void pushBack()
563    {    {
     // pushBack may cause the lineno method to return an incorrect value  
     // if lineno is called before the next call to nextToken.  
564      pushedBack = true;      pushedBack = true;
565    }    }
566    
# Line 670  public class StreamTokenizer Line 667  public class StreamTokenizer
667      if (hi > 255)      if (hi > 255)
668        hi = 255;        hi = 255;
669      for (int i = low; i <= hi; i++)      for (int i = low; i <= hi; i++)
670        whitespace[i] = true;        {
671            resetChar(i);
672            whitespace[i] = true;
673          }
674    }    }
675    
676    /**    /**

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

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