| java.lang.Object org.jivesoftware.util.cache.DummyExternalizableUtil
DummyExternalizableUtil | public class DummyExternalizableUtil implements ExternalizableUtilStrategy(Code) | | Dummy implementation that does nothing. The open source version of the server uses this
strategy.
author: Gaston Dombiak |
Method Summary | |
public boolean | readBoolean(DataInput in) | public byte[] | readByteArray(DataInput in) | public int | readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader) | public int | readExternalizableMap(DataInput in, Map<String, ? extends Externalizable> map, ClassLoader loader) | public int | readInt(DataInput in) | public long | readLong(DataInput in) | public long[] | readLongArray(DataInput in) Reads an array of long values. | public Map | readLongIntMap(DataInput in) Reads a Map of Long key and Integer value pairs. | public String | readSafeUTF(DataInput in) | public Serializable | readSerializable(DataInput in) | public List<String> | readStringList(DataInput in) Reads a List of Strings. | public Map<String, String> | readStringMap(DataInput in) Reads a Map of String key and value pairs. | public int | readStrings(DataInput in, Collection<String> collection) | public int | readStringsMap(DataInput in, Map<String, Set<String>> map) | public void | writeBoolean(DataOutput out, boolean value) | public void | writeByteArray(DataOutput out, byte[] value) | public void | writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value) | public void | writeExternalizableMap(DataOutput out, Map<String, ? extends Externalizable> map) | public void | writeInt(DataOutput out, int value) | public void | writeLong(DataOutput out, long value) | public void | writeLongArray(DataOutput out, long[] array) Writes an array of long values. | public void | writeLongIntMap(DataOutput out, Map<Long, Integer> map) Writes a Map of Long key and Integer value pairs. | public void | writeSafeUTF(DataOutput out, String value) | public void | writeSerializable(DataOutput out, Serializable value) | public void | writeStringList(DataOutput out, List stringList) Writes a List of Strings. | public void | writeStringMap(DataOutput out, Map<String, String> stringMap) Writes a Map of String key and value pairs. | public void | writeStrings(DataOutput out, Collection<String> collection) | public void | writeStringsMap(DataOutput out, Map<String, Set<String>> map) |
readLongArray | public long[] readLongArray(DataInput in) throws IOException(Code) | | Reads an array of long values. This method will return null if
the array written to the stream was null.
Parameters: in - the input stream. an array of long values. throws: IOException - if an error occurs. |
readLongIntMap | public Map readLongIntMap(DataInput in) throws IOException(Code) | | Reads a Map of Long key and Integer value pairs. This method will return
null if the Map written to the stream was null.
Parameters: in - the input stream. a Map of Long key/Integer value pairs. throws: IOException - if an error occurs. |
readStringList | public List<String> readStringList(DataInput in) throws IOException(Code) | | Reads a List of Strings. This method will return null if the List
written to the stream was null.
Parameters: in - the input stream. a List of Strings. throws: IOException - if an error occurs. |
readStringMap | public Map<String, String> readStringMap(DataInput in) throws IOException(Code) | | Reads a Map of String key and value pairs. This method will return
null if the Map written to the stream was null.
Parameters: in - the input stream. a Map of String key/value pairs. throws: IOException - if an error occurs. |
writeLongArray | public void writeLongArray(DataOutput out, long[] array) throws IOException(Code) | | Writes an array of long values. This method handles the case when the
array is null.
Parameters: out - the output stream. Parameters: array - the array of long values. throws: IOException - if an error occurs. |
writeLongIntMap | public void writeLongIntMap(DataOutput out, Map<Long, Integer> map) throws IOException(Code) | | Writes a Map of Long key and Integer value pairs. This method handles
the case when the Map is null.
Parameters: out - the output stream. Parameters: map - the Map of Long key/Integer value pairs. throws: IOException - if an error occurs. |
writeStringList | public void writeStringList(DataOutput out, List stringList) throws IOException(Code) | | Writes a List of Strings. This method handles the case when the List is
null.
Parameters: out - the output stream. Parameters: stringList - the List of Strings. throws: IOException - if an error occurs. |
writeStringMap | public void writeStringMap(DataOutput out, Map<String, String> stringMap) throws IOException(Code) | | Writes a Map of String key and value pairs. This method handles the
case when the Map is null.
Parameters: out - the output stream. Parameters: stringMap - the Map of String key/value pairs. throws: java.io.IOException - if an error occurs. |
|
|