Mercurial Hosting > luan
annotate src/goodjava/io/NoMarkInputStream.java @ 2023:544ccce564f6 default tip
minor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 20 Oct 2025 17:34:14 -0600 |
| parents | 91c167099462 |
| children |
| rev | line source |
|---|---|
| 1494 | 1 package goodjava.io; |
| 2 | |
| 3 import java.io.InputStream; | |
| 4 import java.io.FilterInputStream; | |
| 5 import java.io.IOException; | |
| 6 | |
| 7 | |
| 8 public class NoMarkInputStream extends FilterInputStream { | |
| 9 | |
| 10 public NoMarkInputStream(InputStream in) { | |
| 11 super(in); | |
| 12 } | |
| 13 | |
| 14 public final void mark(int readlimit) {} | |
| 15 | |
| 16 public final void reset() throws IOException { | |
| 17 throw new IOException("mark/reset not supported"); | |
| 18 } | |
| 19 | |
| 20 public final boolean markSupported() { | |
| 21 return false; | |
| 22 } | |
| 23 | |
| 24 } |
