Skip to content

Commit 750d338

Browse files
committed
IO-356 Fix failures in testIO_356_Loop_UTF16 and testIO_356_Loop_UTF8
Reset the byte buffer and the encoder together git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1470353 13f79535-47bb-0310-9956-ffa450edef68
1 parent a39385a commit 750d338

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ public synchronized void reset() throws IOException {
210210
if (this.mark != NO_MARK) {
211211
this.cbuf.position(this.mark);
212212
this.mark = NO_MARK;
213+
this.bbuf.limit(0);
214+
this.encoder.reset();
213215
}
214216
}
215217

0 commit comments

Comments
 (0)