1 /*******************************************************************************
2 * Copyright (c) 2016 Association for Decentralized Information Management
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
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.databoard.util.binary;
14 import java.io.IOException;
15 import java.nio.ByteBuffer;
18 * @author Tuukka Lehtonen
19 * @since 1.22.1 & 1.24.0
21 public class NullBinaryWriteable implements BinaryWriteable {
24 public void writeFully(ByteBuffer src) throws IOException {
28 public void writeFully(ByteBuffer src, int length) throws IOException {
32 public void write(int b) throws IOException {
36 public void write(byte[] b) throws IOException {
40 public void write(byte[] b, int off, int len) throws IOException {
44 public void writeBoolean(boolean v) throws IOException {
48 public void writeByte(int v) throws IOException {
52 public void writeShort(int v) throws IOException {
56 public void writeChar(int v) throws IOException {
60 public void writeInt(int v) throws IOException {
64 public void writeLong(long v) throws IOException {
68 public void writeFloat(float v) throws IOException {
72 public void writeDouble(double v) throws IOException {
76 public void writeBytes(String s) throws IOException {
80 public void writeChars(String s) throws IOException {
84 public void writeUTF(String s) throws IOException {
88 public void flush() throws IOException {