]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/NullRandomAccessBinary.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / util / binary / NullRandomAccessBinary.java
1 /*******************************************************************************\r
2  * Copyright (c) 2016 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     Semantum Oy - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.databoard.util.binary;\r
13 \r
14 import java.io.IOException;\r
15 import java.nio.ByteBuffer;\r
16 \r
17 /**\r
18  * A do-nothing stub implementation of RandomAccessBinary.\r
19  * \r
20  * @author Tuukka Lehtonen\r
21  * @since 1.22.1 & 1.24.0\r
22  */\r
23 public class NullRandomAccessBinary implements RandomAccessBinary {\r
24 \r
25     @Override\r
26     public void writeFully(ByteBuffer src) throws IOException {\r
27     }\r
28 \r
29     @Override\r
30     public void writeFully(ByteBuffer src, int length) throws IOException {\r
31     }\r
32 \r
33     @Override\r
34     public void write(int b) throws IOException {\r
35     }\r
36 \r
37     @Override\r
38     public void write(byte[] b) throws IOException {\r
39     }\r
40 \r
41     @Override\r
42     public void write(byte[] b, int off, int len) throws IOException {\r
43     }\r
44 \r
45     @Override\r
46     public void writeBoolean(boolean v) throws IOException {\r
47     }\r
48 \r
49     @Override\r
50     public void writeByte(int v) throws IOException {\r
51     }\r
52 \r
53     @Override\r
54     public void writeShort(int v) throws IOException {\r
55     }\r
56 \r
57     @Override\r
58     public void writeChar(int v) throws IOException {\r
59     }\r
60 \r
61     @Override\r
62     public void writeInt(int v) throws IOException {\r
63     }\r
64 \r
65     @Override\r
66     public void writeLong(long v) throws IOException {\r
67     }\r
68 \r
69     @Override\r
70     public void writeFloat(float v) throws IOException {\r
71     }\r
72 \r
73     @Override\r
74     public void writeDouble(double v) throws IOException {\r
75     }\r
76 \r
77     @Override\r
78     public void writeBytes(String s) throws IOException {\r
79     }\r
80 \r
81     @Override\r
82     public void writeChars(String s) throws IOException {\r
83     }\r
84 \r
85     @Override\r
86     public void writeUTF(String s) throws IOException {\r
87     }\r
88 \r
89     @Override\r
90     public void flush() throws IOException {\r
91     }\r
92 \r
93     @Override\r
94     public long skipBytes(long bytes) throws IOException {\r
95         return 0;\r
96     }\r
97 \r
98     @Override\r
99     public void readFully(ByteBuffer buf) throws IOException {\r
100     }\r
101 \r
102     @Override\r
103     public void readFully(ByteBuffer buf, int length) throws IOException {\r
104     }\r
105 \r
106     @Override\r
107     public long length() throws IOException {\r
108         return 0;\r
109     }\r
110 \r
111     @Override\r
112     public void readFully(byte[] b) throws IOException {\r
113     }\r
114 \r
115     @Override\r
116     public void readFully(byte[] b, int off, int len) throws IOException {\r
117     }\r
118 \r
119     @Override\r
120     public int skipBytes(int n) throws IOException {\r
121         return 0;\r
122     }\r
123 \r
124     @Override\r
125     public boolean readBoolean() throws IOException {\r
126         return false;\r
127     }\r
128 \r
129     @Override\r
130     public byte readByte() throws IOException {\r
131         return 0;\r
132     }\r
133 \r
134     @Override\r
135     public int readUnsignedByte() throws IOException {\r
136         return 0;\r
137     }\r
138 \r
139     @Override\r
140     public short readShort() throws IOException {\r
141         return 0;\r
142     }\r
143 \r
144     @Override\r
145     public int readUnsignedShort() throws IOException {\r
146         return 0;\r
147     }\r
148 \r
149     @Override\r
150     public char readChar() throws IOException {\r
151         return 0;\r
152     }\r
153 \r
154     @Override\r
155     public int readInt() throws IOException {\r
156         return 0;\r
157     }\r
158 \r
159     @Override\r
160     public long readLong() throws IOException {\r
161         return 0;\r
162     }\r
163 \r
164     @Override\r
165     public float readFloat() throws IOException {\r
166         return 0;\r
167     }\r
168 \r
169     @Override\r
170     public double readDouble() throws IOException {\r
171         return 0;\r
172     }\r
173 \r
174     @Override\r
175     public String readLine() throws IOException {\r
176         return null;\r
177     }\r
178 \r
179     @Override\r
180     public String readUTF() throws IOException {\r
181         return null;\r
182     }\r
183 \r
184     @Override\r
185     public void reset() throws IOException {\r
186     }\r
187 \r
188     @Override\r
189     public void removeBytes(long bytes, ByteSide side) throws IOException {\r
190     }\r
191 \r
192     @Override\r
193     public void insertBytes(long bytes, ByteSide side) throws IOException {\r
194     }\r
195 \r
196     @Override\r
197     public void setLength(long newLength) throws IOException {\r
198     }\r
199 \r
200     @Override\r
201     public void close() throws IOException {\r
202     }\r
203 \r
204     @Override\r
205     public boolean isOpen() {\r
206         return true;\r
207     }\r
208 \r
209     @Override\r
210     public void position(long newPosition) throws IOException {\r
211     }\r
212 \r
213     @Override\r
214     public long position() throws IOException {\r
215         return 0;\r
216     }\r
217 \r
218 }\r