Skip to content

Commit 80463fc

Browse files
committed
Fixes for use of cached file data not resetting fully
Issue with GZ files within ZIP files.
1 parent 7635988 commit 80463fc

File tree

12 files changed

+342
-296
lines changed

12 files changed

+342
-296
lines changed

sources/net.sf.j2s.java.core/src/java/io/BufferedInputStream.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ public synchronized long skip(long amount) throws IOException {
375375
return read + in.skip(amount - read);
376376
}
377377

378-
/**
379-
* BH: Addeed to allow full reset of a bundled stream
380-
*/
381-
@Override
382-
public void resetStream() {
383-
markpos = pos = count = 0;
384-
in.resetStream();
385-
}
378+
// /**
379+
// * BH: Addeed to allow full reset of a bundled stream
380+
// */
381+
// @Override
382+
// public void resetStream() {
383+
// markpos = pos = count = 0;
384+
// in.resetStream();
385+
// }
386386
}

sources/net.sf.j2s.java.core/src/java/io/ByteArrayInputStream.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ public synchronized long skip(long n) {
213213
return pos - temp;
214214
}
215215

216-
/**
217-
* BH: Allows resetting of the stream when a new InputStreamReader is invoked
218-
*/
219-
@Override
220-
public void resetStream() {
221-
mark = pos = 0;
222-
}
223-
216+
// /**
217+
// * BH: Allows resetting of the stream when a new InputStreamReader is invoked
218+
// */
219+
// @Override
220+
// public void resetStream() {
221+
// mark = pos = 0;
222+
// }
223+
//
224224

225225
}

0 commit comments

Comments
 (0)