annotate src/goodjava/io/NoMarkInputStream.java @ 1700:47302bc83b2e

use local luan
author Vadim Filimonov <fffilimonov@yandex.ru>
date Tue, 28 Jun 2022 17:49:27 +0300
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 }