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