Package org.jivesoftware.util.cache
Class DummyExternalizableUtil
- java.lang.Object
-
- org.jivesoftware.util.cache.DummyExternalizableUtil
-
- All Implemented Interfaces:
ExternalizableUtilStrategy
@Deprecated public class DummyExternalizableUtil extends Object implements ExternalizableUtilStrategy
Deprecated.UseDefaultExternalizableUtilwhich, unlike this implementation, provides actual serialization functionality.Dummy implementation that does nothing. The open source version of the server uses this strategy.- Author:
- Gaston Dombiak
-
-
Constructor Summary
Constructors Constructor Description DummyExternalizableUtil()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanreadBoolean(DataInput in)Deprecated.byte[]readByteArray(DataInput in)Deprecated.intreadExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader)Deprecated.intreadExternalizableMap(DataInput in, Map<String,? extends Externalizable> map, ClassLoader loader)Deprecated.intreadInt(DataInput in)Deprecated.longreadLong(DataInput in)Deprecated.long[]readLongArray(DataInput in)Deprecated.Reads an array of long values.Map<Long,Integer>readLongIntMap(DataInput in)Deprecated.Reads a Map of Long key and Integer value pairs.StringreadSafeUTF(DataInput in)Deprecated.SerializablereadSerializable(DataInput in)Deprecated.intreadSerializableCollection(DataInput in, Collection<? extends Serializable> value, ClassLoader loader)Deprecated.intreadSerializableMap(DataInput in, Map<? extends Serializable,? extends Serializable> map, ClassLoader loader)Deprecated.List<String>readStringList(DataInput in)Deprecated.Reads a List of Strings.Map<String,String>readStringMap(DataInput in)Deprecated.Reads a Map of String key and value pairs.intreadStrings(DataInput in, Collection<String> collection)Deprecated.intreadStringsMap(DataInput in, Map<String,Set<String>> map)Deprecated.voidwriteBoolean(DataOutput out, boolean value)Deprecated.voidwriteByteArray(DataOutput out, byte[] value)Deprecated.voidwriteExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value)Deprecated.voidwriteExternalizableMap(DataOutput out, Map<String,? extends Externalizable> map)Deprecated.voidwriteInt(DataOutput out, int value)Deprecated.voidwriteLong(DataOutput out, long value)Deprecated.voidwriteLongArray(DataOutput out, long[] array)Deprecated.Writes an array of long values.voidwriteLongIntMap(DataOutput out, Map<Long,Integer> map)Deprecated.Writes a Map of Long key and Integer value pairs.voidwriteSafeUTF(DataOutput out, String value)Deprecated.voidwriteSerializable(DataOutput out, Serializable value)Deprecated.voidwriteSerializableCollection(DataOutput out, Collection<? extends Serializable> value)Deprecated.voidwriteSerializableMap(DataOutput out, Map<? extends Serializable,? extends Serializable> map)Deprecated.voidwriteStringList(DataOutput out, List<String> stringList)Deprecated.Writes a List of Strings.voidwriteStringMap(DataOutput out, Map<String,String> stringMap)Deprecated.Writes a Map of String key and value pairs.voidwriteStrings(DataOutput out, Collection<String> collection)Deprecated.voidwriteStringsMap(DataOutput out, Map<String,Set<String>> map)Deprecated.
-
-
-
Method Detail
-
writeStringMap
public void writeStringMap(DataOutput out, Map<String,String> stringMap) throws IOException
Deprecated.Writes a Map of String key and value pairs. This method handles the case when the Map isnull.- Specified by:
writeStringMapin interfaceExternalizableUtilStrategy- Parameters:
out- the output stream.stringMap- the Map of String key/value pairs.- Throws:
IOException- if an error occurs.
-
readStringMap
public Map<String,String> readStringMap(DataInput in) throws IOException
Deprecated.Reads a Map of String key and value pairs. This method will returnnullif the Map written to the stream wasnull.- Specified by:
readStringMapin interfaceExternalizableUtilStrategy- Parameters:
in- the input stream.- Returns:
- a Map of String key/value pairs.
- Throws:
IOException- if an error occurs.
-
writeLongIntMap
public void writeLongIntMap(DataOutput out, Map<Long,Integer> map) throws IOException
Deprecated.Writes a Map of Long key and Integer value pairs. This method handles the case when the Map isnull.- Specified by:
writeLongIntMapin interfaceExternalizableUtilStrategy- Parameters:
out- the output stream.map- the Map of Long key/Integer value pairs.- Throws:
IOException- if an error occurs.
-
readLongIntMap
public Map<Long,Integer> readLongIntMap(DataInput in) throws IOException
Deprecated.Reads a Map of Long key and Integer value pairs. This method will returnnullif the Map written to the stream wasnull.- Specified by:
readLongIntMapin interfaceExternalizableUtilStrategy- Parameters:
in- the input stream.- Returns:
- a Map of Long key/Integer value pairs.
- Throws:
IOException- if an error occurs.
-
writeStringList
public void writeStringList(DataOutput out, List<String> stringList) throws IOException
Deprecated.Writes a List of Strings. This method handles the case when the List isnull.- Specified by:
writeStringListin interfaceExternalizableUtilStrategy- Parameters:
out- the output stream.stringList- the List of Strings.- Throws:
IOException- if an error occurs.
-
readStringList
public List<String> readStringList(DataInput in) throws IOException
Deprecated.Reads a List of Strings. This method will returnnullif the List written to the stream wasnull.- Specified by:
readStringListin interfaceExternalizableUtilStrategy- Parameters:
in- the input stream.- Returns:
- a List of Strings.
- Throws:
IOException- if an error occurs.
-
writeLongArray
public void writeLongArray(DataOutput out, long[] array) throws IOException
Deprecated.Writes an array of long values. This method handles the case when the array isnull.- Specified by:
writeLongArrayin interfaceExternalizableUtilStrategy- Parameters:
out- the output stream.array- the array of long values.- Throws:
IOException- if an error occurs.
-
readLongArray
public long[] readLongArray(DataInput in) throws IOException
Deprecated.Reads an array of long values. This method will returnnullif the array written to the stream wasnull.- Specified by:
readLongArrayin interfaceExternalizableUtilStrategy- Parameters:
in- the input stream.- Returns:
- an array of long values.
- Throws:
IOException- if an error occurs.
-
writeLong
public void writeLong(DataOutput out, long value)
Deprecated.- Specified by:
writeLongin interfaceExternalizableUtilStrategy
-
readLong
public long readLong(DataInput in)
Deprecated.- Specified by:
readLongin interfaceExternalizableUtilStrategy
-
writeBoolean
public void writeBoolean(DataOutput out, boolean value)
Deprecated.- Specified by:
writeBooleanin interfaceExternalizableUtilStrategy
-
readBoolean
public boolean readBoolean(DataInput in)
Deprecated.- Specified by:
readBooleanin interfaceExternalizableUtilStrategy
-
writeByteArray
public void writeByteArray(DataOutput out, byte[] value) throws IOException
Deprecated.- Specified by:
writeByteArrayin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readByteArray
public byte[] readByteArray(DataInput in) throws IOException
Deprecated.- Specified by:
readByteArrayin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeSerializable
public void writeSerializable(DataOutput out, Serializable value) throws IOException
Deprecated.- Specified by:
writeSerializablein interfaceExternalizableUtilStrategy- Throws:
IOException
-
readSerializable
public Serializable readSerializable(DataInput in) throws IOException
Deprecated.- Specified by:
readSerializablein interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeSafeUTF
public void writeSafeUTF(DataOutput out, String value)
Deprecated.- Specified by:
writeSafeUTFin interfaceExternalizableUtilStrategy
-
readSafeUTF
public String readSafeUTF(DataInput in)
Deprecated.- Specified by:
readSafeUTFin interfaceExternalizableUtilStrategy
-
writeExternalizableCollection
public void writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value) throws IOException
Deprecated.- Specified by:
writeExternalizableCollectionin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readExternalizableCollection
public int readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readExternalizableCollectionin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeSerializableCollection
public void writeSerializableCollection(DataOutput out, Collection<? extends Serializable> value) throws IOException
Deprecated.- Specified by:
writeSerializableCollectionin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readSerializableCollection
public int readSerializableCollection(DataInput in, Collection<? extends Serializable> value, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readSerializableCollectionin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeExternalizableMap
public void writeExternalizableMap(DataOutput out, Map<String,? extends Externalizable> map) throws IOException
Deprecated.- Specified by:
writeExternalizableMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readExternalizableMap
public int readExternalizableMap(DataInput in, Map<String,? extends Externalizable> map, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readExternalizableMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeSerializableMap
public void writeSerializableMap(DataOutput out, Map<? extends Serializable,? extends Serializable> map) throws IOException
Deprecated.- Specified by:
writeSerializableMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readSerializableMap
public int readSerializableMap(DataInput in, Map<? extends Serializable,? extends Serializable> map, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readSerializableMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeStringsMap
public void writeStringsMap(DataOutput out, Map<String,Set<String>> map) throws IOException
Deprecated.- Specified by:
writeStringsMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readStringsMap
public int readStringsMap(DataInput in, Map<String,Set<String>> map) throws IOException
Deprecated.- Specified by:
readStringsMapin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeStrings
public void writeStrings(DataOutput out, Collection<String> collection) throws IOException
Deprecated.- Specified by:
writeStringsin interfaceExternalizableUtilStrategy- Throws:
IOException
-
readStrings
public int readStrings(DataInput in, Collection<String> collection) throws IOException
Deprecated.- Specified by:
readStringsin interfaceExternalizableUtilStrategy- Throws:
IOException
-
writeInt
public void writeInt(DataOutput out, int value)
Deprecated.- Specified by:
writeIntin interfaceExternalizableUtilStrategy
-
readInt
public int readInt(DataInput in)
Deprecated.- Specified by:
readIntin interfaceExternalizableUtilStrategy
-
-