Fixes for PushbackReader (which only can push back one char) and StringReader.

This commit is contained in:
Eric Scharff
2007-12-18 12:19:52 -07:00
parent 8b2577b77c
commit 6954c9c377
2 changed files with 22 additions and 27 deletions

View File

@ -15,7 +15,7 @@ public class StringReader extends Reader {
return -1;
}
}
in.getChars(position, length, b, offset);
in.getChars(position, position+length, b, offset);
position += length;
return length;
}