X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Futil%2Fbinary%2FNullRandomAccessBinary.java;h=5b2c5ef2711fa41bc4e474dd93cc18749bad4c4c;hb=refs%2Fchanges%2F38%2F238%2F2;hp=a6cf71bd8d107d4ad575bdbc36333702a05e9357;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/NullRandomAccessBinary.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/NullRandomAccessBinary.java index a6cf71bd8..5b2c5ef27 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/NullRandomAccessBinary.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/NullRandomAccessBinary.java @@ -1,218 +1,218 @@ -/******************************************************************************* - * Copyright (c) 2016 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Semantum Oy - initial API and implementation - *******************************************************************************/ -package org.simantics.databoard.util.binary; - -import java.io.IOException; -import java.nio.ByteBuffer; - -/** - * A do-nothing stub implementation of RandomAccessBinary. - * - * @author Tuukka Lehtonen - * @since 1.22.1 & 1.24.0 - */ -public class NullRandomAccessBinary implements RandomAccessBinary { - - @Override - public void writeFully(ByteBuffer src) throws IOException { - } - - @Override - public void writeFully(ByteBuffer src, int length) throws IOException { - } - - @Override - public void write(int b) throws IOException { - } - - @Override - public void write(byte[] b) throws IOException { - } - - @Override - public void write(byte[] b, int off, int len) throws IOException { - } - - @Override - public void writeBoolean(boolean v) throws IOException { - } - - @Override - public void writeByte(int v) throws IOException { - } - - @Override - public void writeShort(int v) throws IOException { - } - - @Override - public void writeChar(int v) throws IOException { - } - - @Override - public void writeInt(int v) throws IOException { - } - - @Override - public void writeLong(long v) throws IOException { - } - - @Override - public void writeFloat(float v) throws IOException { - } - - @Override - public void writeDouble(double v) throws IOException { - } - - @Override - public void writeBytes(String s) throws IOException { - } - - @Override - public void writeChars(String s) throws IOException { - } - - @Override - public void writeUTF(String s) throws IOException { - } - - @Override - public void flush() throws IOException { - } - - @Override - public long skipBytes(long bytes) throws IOException { - return 0; - } - - @Override - public void readFully(ByteBuffer buf) throws IOException { - } - - @Override - public void readFully(ByteBuffer buf, int length) throws IOException { - } - - @Override - public long length() throws IOException { - return 0; - } - - @Override - public void readFully(byte[] b) throws IOException { - } - - @Override - public void readFully(byte[] b, int off, int len) throws IOException { - } - - @Override - public int skipBytes(int n) throws IOException { - return 0; - } - - @Override - public boolean readBoolean() throws IOException { - return false; - } - - @Override - public byte readByte() throws IOException { - return 0; - } - - @Override - public int readUnsignedByte() throws IOException { - return 0; - } - - @Override - public short readShort() throws IOException { - return 0; - } - - @Override - public int readUnsignedShort() throws IOException { - return 0; - } - - @Override - public char readChar() throws IOException { - return 0; - } - - @Override - public int readInt() throws IOException { - return 0; - } - - @Override - public long readLong() throws IOException { - return 0; - } - - @Override - public float readFloat() throws IOException { - return 0; - } - - @Override - public double readDouble() throws IOException { - return 0; - } - - @Override - public String readLine() throws IOException { - return null; - } - - @Override - public String readUTF() throws IOException { - return null; - } - - @Override - public void reset() throws IOException { - } - - @Override - public void removeBytes(long bytes, ByteSide side) throws IOException { - } - - @Override - public void insertBytes(long bytes, ByteSide side) throws IOException { - } - - @Override - public void setLength(long newLength) throws IOException { - } - - @Override - public void close() throws IOException { - } - - @Override - public boolean isOpen() { - return true; - } - - @Override - public void position(long newPosition) throws IOException { - } - - @Override - public long position() throws IOException { - return 0; - } - -} +/******************************************************************************* + * Copyright (c) 2016 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.databoard.util.binary; + +import java.io.IOException; +import java.nio.ByteBuffer; + +/** + * A do-nothing stub implementation of RandomAccessBinary. + * + * @author Tuukka Lehtonen + * @since 1.22.1 & 1.24.0 + */ +public class NullRandomAccessBinary implements RandomAccessBinary { + + @Override + public void writeFully(ByteBuffer src) throws IOException { + } + + @Override + public void writeFully(ByteBuffer src, int length) throws IOException { + } + + @Override + public void write(int b) throws IOException { + } + + @Override + public void write(byte[] b) throws IOException { + } + + @Override + public void write(byte[] b, int off, int len) throws IOException { + } + + @Override + public void writeBoolean(boolean v) throws IOException { + } + + @Override + public void writeByte(int v) throws IOException { + } + + @Override + public void writeShort(int v) throws IOException { + } + + @Override + public void writeChar(int v) throws IOException { + } + + @Override + public void writeInt(int v) throws IOException { + } + + @Override + public void writeLong(long v) throws IOException { + } + + @Override + public void writeFloat(float v) throws IOException { + } + + @Override + public void writeDouble(double v) throws IOException { + } + + @Override + public void writeBytes(String s) throws IOException { + } + + @Override + public void writeChars(String s) throws IOException { + } + + @Override + public void writeUTF(String s) throws IOException { + } + + @Override + public void flush() throws IOException { + } + + @Override + public long skipBytes(long bytes) throws IOException { + return 0; + } + + @Override + public void readFully(ByteBuffer buf) throws IOException { + } + + @Override + public void readFully(ByteBuffer buf, int length) throws IOException { + } + + @Override + public long length() throws IOException { + return 0; + } + + @Override + public void readFully(byte[] b) throws IOException { + } + + @Override + public void readFully(byte[] b, int off, int len) throws IOException { + } + + @Override + public int skipBytes(int n) throws IOException { + return 0; + } + + @Override + public boolean readBoolean() throws IOException { + return false; + } + + @Override + public byte readByte() throws IOException { + return 0; + } + + @Override + public int readUnsignedByte() throws IOException { + return 0; + } + + @Override + public short readShort() throws IOException { + return 0; + } + + @Override + public int readUnsignedShort() throws IOException { + return 0; + } + + @Override + public char readChar() throws IOException { + return 0; + } + + @Override + public int readInt() throws IOException { + return 0; + } + + @Override + public long readLong() throws IOException { + return 0; + } + + @Override + public float readFloat() throws IOException { + return 0; + } + + @Override + public double readDouble() throws IOException { + return 0; + } + + @Override + public String readLine() throws IOException { + return null; + } + + @Override + public String readUTF() throws IOException { + return null; + } + + @Override + public void reset() throws IOException { + } + + @Override + public void removeBytes(long bytes, ByteSide side) throws IOException { + } + + @Override + public void insertBytes(long bytes, ByteSide side) throws IOException { + } + + @Override + public void setLength(long newLength) throws IOException { + } + + @Override + public void close() throws IOException { + } + + @Override + public boolean isOpen() { + return true; + } + + @Override + public void position(long newPosition) throws IOException { + } + + @Override + public long position() throws IOException { + return 0; + } + +}