annotate src/goodjava/io/NoMarkInputStream.java @ 1805:7793bcb5f34a

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 08 May 2024 11:13:16 -0600
parents 91c167099462
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1494
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 package goodjava.io;
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 import java.io.InputStream;
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 import java.io.FilterInputStream;
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 import java.io.IOException;
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 public class NoMarkInputStream extends FilterInputStream {
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 public NoMarkInputStream(InputStream in) {
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 super(in);
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 }
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 public final void mark(int readlimit) {}
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 public final void reset() throws IOException {
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 throw new IOException("mark/reset not supported");
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 }
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 public final boolean markSupported() {
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 return false;
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 }
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23
91c167099462 more io
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 }