| org.jivesoftware.util.cache.ExternalizableUtilStrategy
All known Subclasses: org.jivesoftware.util.cache.DummyExternalizableUtil,
ExternalizableUtilStrategy | public interface ExternalizableUtilStrategy (Code) | | Interface that allows to provide different ways for implementing serialization of objects.
The open source version of the server will just provide a dummy implementation that does
nothing. The enterprise version will use Coherence as its underlying mechanism.
author: Gaston Dombiak |
Method Summary | |
boolean | readBoolean(DataInput in) | byte[] | readByteArray(DataInput in) | int | readExternalizableCollection(DataInput in, Collection<? extends Externalizable> value, ClassLoader loader) | int | readExternalizableMap(DataInput in, Map<String, ? extends Externalizable> map, ClassLoader loader) | int | readInt(DataInput in) | long | readLong(DataInput in) | long[] | readLongArray(DataInput in) Reads an array of long values. | Map | readLongIntMap(DataInput in) Reads a Map of Long key and Integer value pairs. | String | readSafeUTF(DataInput in) | Serializable | readSerializable(DataInput in) | List<String> | readStringList(DataInput in) Reads a List of Strings. | Map<String, String> | readStringMap(DataInput in) Reads a Map of String key and value pairs. | int | readStrings(DataInput in, Collection<String> collection) | int | readStringsMap(DataInput in, Map<String, Set<String>> map) | void | writeBoolean(DataOutput out, boolean value) | void | writeByteArray(DataOutput out, byte[] value) | void | writeExternalizableCollection(DataOutput out, Collection<? extends Externalizable> value) | void | writeExternalizableMap(DataOutput out, Map<String, ? extends Externalizable> map) | void | writeInt(DataOutput out, int value) | void | writeLong(DataOutput out, long value) | void | writeLongArray(DataOutput out, long[] array) Writes an array of long values. | void | writeLongIntMap(DataOutput out, Map<Long, Integer> map) Writes a Map of Long key and Integer value pairs. | void | writeSafeUTF(DataOutput out, String value) | void | writeSerializable(DataOutput out, Serializable value) | void | writeStringList(DataOutput out, List stringList) Writes a List of Strings. | void | writeStringMap(DataOutput out, Map<String, String> stringMap) Writes a Map of String key and value pairs. | void | writeStrings(DataOutput out, Collection<String> collection) | void | writeStringsMap(DataOutput out, Map<String, Set<String>> map) |
readLongArray | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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. |
|
|