org.ujmp.core.collections.map
Class SerializedObjectMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.AbstractDiskMap<K,V>
-
- org.ujmp.core.collections.map.SerializedObjectMap<K,V>
-
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map<K,V>, Erasable
public class SerializedObjectMap<K,V> extends AbstractDiskMap<K,V>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor and Description SerializedObjectMap()SerializedObjectMap(boolean useGZip)SerializedObjectMap(java.io.File path)SerializedObjectMap(java.io.File path, boolean useGZip)SerializedObjectMap(java.lang.String path)SerializedObjectMap(java.lang.String path, boolean useGZip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description VreadValue(java.io.InputStream is)voidwriteValue(java.io.OutputStream os, V value)-
Methods inherited from class org.ujmp.core.collections.map.AbstractDiskMap
clear, containsKey, erase, get, getPath, keySet, put, remove, setPath, size
-
Methods inherited from class org.ujmp.core.collections.map.AbstractMap
containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
-
-
-
-
Constructor Detail
-
SerializedObjectMap
public SerializedObjectMap() throws java.io.IOException- Throws:
java.io.IOException
-
SerializedObjectMap
public SerializedObjectMap(java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
SerializedObjectMap
public SerializedObjectMap(boolean useGZip) throws java.io.IOException- Throws:
java.io.IOException
-
SerializedObjectMap
public SerializedObjectMap(java.lang.String path, boolean useGZip) throws java.io.IOException- Throws:
java.io.IOException
-
SerializedObjectMap
public SerializedObjectMap(java.io.File path) throws java.io.IOException- Throws:
java.io.IOException
-
SerializedObjectMap
public SerializedObjectMap(java.io.File path, boolean useGZip) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
writeValue
public final void writeValue(java.io.OutputStream os, V value)- Specified by:
writeValuein classAbstractDiskMap<K,V>
-
readValue
public V readValue(java.io.InputStream is)
- Specified by:
readValuein classAbstractDiskMap<K,V>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG