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.UseDefaultExternalizableUtil
which, 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 boolean
readBoolean(DataInput in)
Deprecated.byte[]
readByteArray(DataInput in)
Deprecated.int
readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader)
Deprecated.int
readExternalizableMap(DataInput in, Map<String,? extends Externalizable> map, ClassLoader loader)
Deprecated.int
readInt(DataInput in)
Deprecated.long
readLong(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.String
readSafeUTF(DataInput in)
Deprecated.Serializable
readSerializable(DataInput in)
Deprecated.int
readSerializableCollection(DataInput in, Collection<? extends Serializable> value, ClassLoader loader)
Deprecated.int
readSerializableMap(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.int
readStrings(DataInput in, Collection<String> collection)
Deprecated.int
readStringsMap(DataInput in, Map<String,Set<String>> map)
Deprecated.void
writeBoolean(DataOutput out, boolean value)
Deprecated.void
writeByteArray(DataOutput out, byte[] value)
Deprecated.void
writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value)
Deprecated.void
writeExternalizableMap(DataOutput out, Map<String,? extends Externalizable> map)
Deprecated.void
writeInt(DataOutput out, int value)
Deprecated.void
writeLong(DataOutput out, long value)
Deprecated.void
writeLongArray(DataOutput out, long[] array)
Deprecated.Writes an array of long values.void
writeLongIntMap(DataOutput out, Map<Long,Integer> map)
Deprecated.Writes a Map of Long key and Integer value pairs.void
writeSafeUTF(DataOutput out, String value)
Deprecated.void
writeSerializable(DataOutput out, Serializable value)
Deprecated.void
writeSerializableCollection(DataOutput out, Collection<? extends Serializable> value)
Deprecated.void
writeSerializableMap(DataOutput out, Map<? extends Serializable,? extends Serializable> map)
Deprecated.void
writeStringList(DataOutput out, List<String> stringList)
Deprecated.Writes a List of Strings.void
writeStringMap(DataOutput out, Map<String,String> stringMap)
Deprecated.Writes a Map of String key and value pairs.void
writeStrings(DataOutput out, Collection<String> collection)
Deprecated.void
writeStringsMap(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:
writeStringMap
in 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 returnnull
if the Map written to the stream wasnull
.- Specified by:
readStringMap
in 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:
writeLongIntMap
in 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 returnnull
if the Map written to the stream wasnull
.- Specified by:
readLongIntMap
in 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:
writeStringList
in 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 returnnull
if the List written to the stream wasnull
.- Specified by:
readStringList
in 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:
writeLongArray
in 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 returnnull
if the array written to the stream wasnull
.- Specified by:
readLongArray
in 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:
writeLong
in interfaceExternalizableUtilStrategy
-
readLong
public long readLong(DataInput in)
Deprecated.- Specified by:
readLong
in interfaceExternalizableUtilStrategy
-
writeBoolean
public void writeBoolean(DataOutput out, boolean value)
Deprecated.- Specified by:
writeBoolean
in interfaceExternalizableUtilStrategy
-
readBoolean
public boolean readBoolean(DataInput in)
Deprecated.- Specified by:
readBoolean
in interfaceExternalizableUtilStrategy
-
writeByteArray
public void writeByteArray(DataOutput out, byte[] value) throws IOException
Deprecated.- Specified by:
writeByteArray
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readByteArray
public byte[] readByteArray(DataInput in) throws IOException
Deprecated.- Specified by:
readByteArray
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeSerializable
public void writeSerializable(DataOutput out, Serializable value) throws IOException
Deprecated.- Specified by:
writeSerializable
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readSerializable
public Serializable readSerializable(DataInput in) throws IOException
Deprecated.- Specified by:
readSerializable
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeSafeUTF
public void writeSafeUTF(DataOutput out, String value)
Deprecated.- Specified by:
writeSafeUTF
in interfaceExternalizableUtilStrategy
-
readSafeUTF
public String readSafeUTF(DataInput in)
Deprecated.- Specified by:
readSafeUTF
in interfaceExternalizableUtilStrategy
-
writeExternalizableCollection
public void writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value) throws IOException
Deprecated.- Specified by:
writeExternalizableCollection
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readExternalizableCollection
public int readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readExternalizableCollection
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeSerializableCollection
public void writeSerializableCollection(DataOutput out, Collection<? extends Serializable> value) throws IOException
Deprecated.- Specified by:
writeSerializableCollection
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readSerializableCollection
public int readSerializableCollection(DataInput in, Collection<? extends Serializable> value, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readSerializableCollection
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeExternalizableMap
public void writeExternalizableMap(DataOutput out, Map<String,? extends Externalizable> map) throws IOException
Deprecated.- Specified by:
writeExternalizableMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readExternalizableMap
public int readExternalizableMap(DataInput in, Map<String,? extends Externalizable> map, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readExternalizableMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeSerializableMap
public void writeSerializableMap(DataOutput out, Map<? extends Serializable,? extends Serializable> map) throws IOException
Deprecated.- Specified by:
writeSerializableMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readSerializableMap
public int readSerializableMap(DataInput in, Map<? extends Serializable,? extends Serializable> map, ClassLoader loader) throws IOException
Deprecated.- Specified by:
readSerializableMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeStringsMap
public void writeStringsMap(DataOutput out, Map<String,Set<String>> map) throws IOException
Deprecated.- Specified by:
writeStringsMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readStringsMap
public int readStringsMap(DataInput in, Map<String,Set<String>> map) throws IOException
Deprecated.- Specified by:
readStringsMap
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeStrings
public void writeStrings(DataOutput out, Collection<String> collection) throws IOException
Deprecated.- Specified by:
writeStrings
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
readStrings
public int readStrings(DataInput in, Collection<String> collection) throws IOException
Deprecated.- Specified by:
readStrings
in interfaceExternalizableUtilStrategy
- Throws:
IOException
-
writeInt
public void writeInt(DataOutput out, int value)
Deprecated.- Specified by:
writeInt
in interfaceExternalizableUtilStrategy
-
readInt
public int readInt(DataInput in)
Deprecated.- Specified by:
readInt
in interfaceExternalizableUtilStrategy
-
-