com.hazelcast.internal.serialization.impl.portable.EmptyObjectDataOutput Maven / Gradle / Ivy
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.internal.serialization.impl.portable;
import com.hazelcast.internal.nio.DataWriter;
import com.hazelcast.internal.serialization.impl.VersionedObjectDataOutput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.internal.serialization.Data;
import com.hazelcast.internal.serialization.SerializationService;
import com.hazelcast.spi.impl.SerializationServiceSupport;
import javax.annotation.Nullable;
import java.io.IOException;
import java.nio.ByteOrder;
@SuppressWarnings("checkstyle:methodcount")
final class EmptyObjectDataOutput extends VersionedObjectDataOutput
implements ObjectDataOutput, SerializationServiceSupport, DataWriter {
@Override
public void writeObject(Object object) throws IOException {
}
@Override
public void writeData(Data data) 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 writeString(@Nullable String string) throws IOException {
}
@Override
public void writeByteArray(byte[] value) throws IOException {
}
@Override
public void writeBooleanArray(boolean[] booleans) throws IOException {
}
@Override
public void writeCharArray(char[] chars) throws IOException {
}
@Override
public void writeIntArray(int[] ints) throws IOException {
}
@Override
public void writeLongArray(long[] longs) throws IOException {
}
@Override
public void writeDoubleArray(double[] values) throws IOException {
}
@Override
public void writeFloatArray(float[] values) throws IOException {
}
@Override
public void writeShortArray(short[] values) throws IOException {
}
@Override
public void writeUTFArray(String[] values) throws IOException {
}
@Override
public void writeStringArray(@Nullable String[] values) throws IOException {
}
@Override
public byte[] toByteArray() {
return toByteArray(0);
}
@Override
public byte[] toByteArray(int padding) {
throw new UnsupportedOperationException();
}
public void close() throws IOException {
}
@Override
public ByteOrder getByteOrder() {
return ByteOrder.BIG_ENDIAN;
}
@Override
public SerializationService getSerializationService() {
return null;
}
}