1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.vfs2.provider;
18
19 import java.io.DataInputStream;
20 import java.io.DataOutput;
21 import java.io.IOException;
22 import java.util.Objects;
23
24 import org.apache.commons.vfs2.RandomAccessContent;
25 import org.apache.commons.vfs2.util.RandomAccessMode;
26
27
28
29
30
31
32 public abstract class AbstractRandomAccessContent implements RandomAccessContent {
33
34
35
36
37
38
39 protected AbstractRandomAccessContent(final RandomAccessMode mode) {
40 Objects.requireNonNull(mode, "mode");
41 }
42
43
44
45
46
47
48
49 @Override
50 @Deprecated
51 public String readLine() throws IOException {
52 throw new UnsupportedOperationException("Deprecated");
53 }
54
55 @Override
56 public void write(final byte[] b) throws IOException {
57 throw new UnsupportedOperationException();
58 }
59
60 @Override
61 public void write(final byte[] b, final int off, final int len) throws IOException {
62 throw new UnsupportedOperationException();
63 }
64
65 @Override
66 public void write(final int b) throws IOException {
67 throw new UnsupportedOperationException();
68 }
69
70 @Override
71 public void writeBoolean(final boolean v) throws IOException {
72 throw new UnsupportedOperationException();
73 }
74
75 @Override
76 public void writeByte(final int v) throws IOException {
77 throw new UnsupportedOperationException();
78 }
79
80 @Override
81 public void writeBytes(final String s) throws IOException {
82 throw new UnsupportedOperationException();
83 }
84
85 @Override
86 public void writeChar(final int v) throws IOException {
87 throw new UnsupportedOperationException();
88 }
89
90 @Override
91 public void writeChars(final String s) throws IOException {
92 throw new UnsupportedOperationException();
93 }
94
95 @Override
96 public void writeDouble(final double v) throws IOException {
97 throw new UnsupportedOperationException();
98 }
99
100 @Override
101 public void writeFloat(final float v) throws IOException {
102 throw new UnsupportedOperationException();
103 }
104
105 @Override
106 public void writeInt(final int v) throws IOException {
107 throw new UnsupportedOperationException();
108 }
109
110 @Override
111 public void writeLong(final long v) throws IOException {
112 throw new UnsupportedOperationException();
113 }
114
115 @Override
116 public void writeShort(final int v) throws IOException {
117 throw new UnsupportedOperationException();
118 }
119
120 @Override
121 public void writeUTF(final String str) throws IOException {
122 throw new UnsupportedOperationException();
123 }
124 }