/[classpath]/gjdoc/src/gnu/classpath/tools/NotifyingInputStreamReader.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/NotifyingInputStreamReader.java

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

revision 1.1 by julian, Fri Dec 10 14:29:42 2004 UTC revision 1.2 by julian, Wed Dec 15 16:10:06 2004 UTC
# Line 244  public class NotifyingInputStreamReader Line 244  public class NotifyingInputStreamReader
244        throws IOException        throws IOException
245     {     {
246        charBuffer.clear();        charBuffer.clear();
247       outer:
248        while (!flushed) {        while (!flushed) {
249           CoderResult coderResult;           CoderResult coderResult;
250           int charBufferPositionBefore = charBuffer.position();           int charBufferPositionBefore = charBuffer.position();
# Line 257  public class NotifyingInputStreamReader Line 258  public class NotifyingInputStreamReader
258              coderResult = decoder.flush(charBuffer);              coderResult = decoder.flush(charBuffer);
259              flushed = coderResult.isUnderflow();              flushed = coderResult.isUnderflow();
260           }           }
261           /*  
262           int charBufferPositionAfter = charBuffer.position();           int charBufferPositionAfter = charBuffer.position();
263           for (int i=charBufferPositionBefore; i<charBufferPositionAfter; ++i) {           for (int i=charBufferPositionBefore; i<charBufferPositionAfter; ++i) {
264              if (10 == charBuffer.get(i)) {              if (10 == charBuffer.get(i)) {
# Line 268  public class NotifyingInputStreamReader Line 269  public class NotifyingInputStreamReader
269                 ++ columnNumber;                 ++ columnNumber;
270              }              }
271           }           }
          */  
272           if (coderResult.isOverflow()) {           if (coderResult.isOverflow()) {
273              break;              break;
274           }           }
# Line 295  public class NotifyingInputStreamReader Line 295  public class NotifyingInputStreamReader
295                    columnNumber ++;                    columnNumber ++;
296                 }                 }
297                 else {                 else {
298                    break;                    break outer;
299                 }                 }
300              }              }
301           }           }
# Line 382  public class NotifyingInputStreamReader Line 382  public class NotifyingInputStreamReader
382      */      */
383     public void addMalformedInputListener(MalformedInputListener listener)     public void addMalformedInputListener(MalformedInputListener listener)
384     {     {
385        this.listeners.add(listeners);        this.listeners.add(listener);
386     }     }
387    
388     /**     /**
# Line 392  public class NotifyingInputStreamReader Line 392  public class NotifyingInputStreamReader
392      */      */
393     public void removeMalformedInputListener(MalformedInputListener listener)     public void removeMalformedInputListener(MalformedInputListener listener)
394     {     {
395        this.listeners.remove(listeners);        this.listeners.remove(listener);
396     }     }
397    
398  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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