--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2016 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * Semantum Oy - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.databoard.util.binary;\r
+\r
+import java.io.IOException;\r
+import java.nio.ByteBuffer;\r
+\r
+/**\r
+ * A do-nothing stub implementation of RandomAccessBinary.\r
+ * \r
+ * @author Tuukka Lehtonen\r
+ * @since 1.22.1 & 1.24.0\r
+ */\r
+public class NullRandomAccessBinary implements RandomAccessBinary {\r
+\r
+ @Override\r
+ public void writeFully(ByteBuffer src) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeFully(ByteBuffer src, int length) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void write(int b) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void write(byte[] b) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void write(byte[] b, int off, int len) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeBoolean(boolean v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeByte(int v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeShort(int v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeChar(int v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeInt(int v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeLong(long v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeFloat(float v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeDouble(double v) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeBytes(String s) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeChars(String s) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void writeUTF(String s) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void flush() throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public long skipBytes(long bytes) throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public void readFully(ByteBuffer buf) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void readFully(ByteBuffer buf, int length) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public long length() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public void readFully(byte[] b) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void readFully(byte[] b, int off, int len) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public int skipBytes(int n) throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public boolean readBoolean() throws IOException {\r
+ return false;\r
+ }\r
+\r
+ @Override\r
+ public byte readByte() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public int readUnsignedByte() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public short readShort() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public int readUnsignedShort() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public char readChar() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public int readInt() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public long readLong() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public float readFloat() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public double readDouble() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+ @Override\r
+ public String readLine() throws IOException {\r
+ return null;\r
+ }\r
+\r
+ @Override\r
+ public String readUTF() throws IOException {\r
+ return null;\r
+ }\r
+\r
+ @Override\r
+ public void reset() throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void removeBytes(long bytes, ByteSide side) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void insertBytes(long bytes, ByteSide side) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void setLength(long newLength) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public void close() throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public boolean isOpen() {\r
+ return true;\r
+ }\r
+\r
+ @Override\r
+ public void position(long newPosition) throws IOException {\r
+ }\r
+\r
+ @Override\r
+ public long position() throws IOException {\r
+ return 0;\r
+ }\r
+\r
+}\r