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