public class DummyExternalizableUtil extends Object implements ExternalizableUtilStrategy
Constructor and Description |
---|
DummyExternalizableUtil() |
public void writeStringMap(DataOutput out, Map<String,String> stringMap) throws IOException
null
.writeStringMap
in interface ExternalizableUtilStrategy
out
- the output stream.stringMap
- the Map of String key/value pairs.IOException
- if an error occurs.public Map<String,String> readStringMap(DataInput in) throws IOException
null
if the Map written to the stream was null
.readStringMap
in interface ExternalizableUtilStrategy
in
- the input stream.IOException
- if an error occurs.public void writeLongIntMap(DataOutput out, Map<Long,Integer> map) throws IOException
null
.writeLongIntMap
in interface ExternalizableUtilStrategy
out
- the output stream.map
- the Map of Long key/Integer value pairs.IOException
- if an error occurs.public Map<Long,Integer> readLongIntMap(DataInput in) throws IOException
null
if the Map written to the stream was null
.readLongIntMap
in interface ExternalizableUtilStrategy
in
- the input stream.IOException
- if an error occurs.public void writeStringList(DataOutput out, List<String> stringList) throws IOException
null
.writeStringList
in interface ExternalizableUtilStrategy
out
- the output stream.stringList
- the List of Strings.IOException
- if an error occurs.public List<String> readStringList(DataInput in) throws IOException
null
if the List
written to the stream was null
.readStringList
in interface ExternalizableUtilStrategy
in
- the input stream.IOException
- if an error occurs.public void writeLongArray(DataOutput out, long[] array) throws IOException
null
.writeLongArray
in interface ExternalizableUtilStrategy
out
- the output stream.array
- the array of long values.IOException
- if an error occurs.public long[] readLongArray(DataInput in) throws IOException
null
if
the array written to the stream was null
.readLongArray
in interface ExternalizableUtilStrategy
in
- the input stream.IOException
- if an error occurs.public void writeLong(DataOutput out, long value)
writeLong
in interface ExternalizableUtilStrategy
public long readLong(DataInput in)
readLong
in interface ExternalizableUtilStrategy
public void writeBoolean(DataOutput out, boolean value)
writeBoolean
in interface ExternalizableUtilStrategy
public boolean readBoolean(DataInput in)
readBoolean
in interface ExternalizableUtilStrategy
public void writeByteArray(DataOutput out, byte[] value) throws IOException
writeByteArray
in interface ExternalizableUtilStrategy
IOException
public byte[] readByteArray(DataInput in) throws IOException
readByteArray
in interface ExternalizableUtilStrategy
IOException
public void writeSerializable(DataOutput out, Serializable value) throws IOException
writeSerializable
in interface ExternalizableUtilStrategy
IOException
public Serializable readSerializable(DataInput in) throws IOException
readSerializable
in interface ExternalizableUtilStrategy
IOException
public void writeSafeUTF(DataOutput out, String value)
writeSafeUTF
in interface ExternalizableUtilStrategy
public String readSafeUTF(DataInput in)
readSafeUTF
in interface ExternalizableUtilStrategy
public void writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value) throws IOException
writeExternalizableCollection
in interface ExternalizableUtilStrategy
IOException
public int readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader) throws IOException
readExternalizableCollection
in interface ExternalizableUtilStrategy
IOException
public void writeSerializableCollection(DataOutput out, Collection<? extends Serializable> value) throws IOException
writeSerializableCollection
in interface ExternalizableUtilStrategy
IOException
public int readSerializableCollection(DataInput in, Collection<? extends Serializable> value, ClassLoader loader) throws IOException
readSerializableCollection
in interface ExternalizableUtilStrategy
IOException
public void writeExternalizableMap(DataOutput out, Map<String,? extends Externalizable> map) throws IOException
writeExternalizableMap
in interface ExternalizableUtilStrategy
IOException
public int readExternalizableMap(DataInput in, Map<String,? extends Externalizable> map, ClassLoader loader) throws IOException
readExternalizableMap
in interface ExternalizableUtilStrategy
IOException
public void writeSerializableMap(DataOutput out, Map<? extends Serializable,? extends Serializable> map) throws IOException
writeSerializableMap
in interface ExternalizableUtilStrategy
IOException
public int readSerializableMap(DataInput in, Map<? extends Serializable,? extends Serializable> map, ClassLoader loader) throws IOException
readSerializableMap
in interface ExternalizableUtilStrategy
IOException
public void writeStringsMap(DataOutput out, Map<String,Set<String>> map) throws IOException
writeStringsMap
in interface ExternalizableUtilStrategy
IOException
public int readStringsMap(DataInput in, Map<String,Set<String>> map) throws IOException
readStringsMap
in interface ExternalizableUtilStrategy
IOException
public void writeStrings(DataOutput out, Collection<String> collection) throws IOException
writeStrings
in interface ExternalizableUtilStrategy
IOException
public int readStrings(DataInput in, Collection<String> collection) throws IOException
readStrings
in interface ExternalizableUtilStrategy
IOException
public void writeInt(DataOutput out, int value)
writeInt
in interface ExternalizableUtilStrategy
public int readInt(DataInput in)
readInt
in interface ExternalizableUtilStrategy
Copyright © 2003–2019 Ignite Realtime. All rights reserved.