Package 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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor 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 Description V
readValue(java.io.InputStream is)
void
writeValue(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
beforeReadObject, beforeWriteObject, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field 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:
writeValue
in classAbstractDiskMap<K,V>
-
readValue
public V readValue(java.io.InputStream is)
- Specified by:
readValue
in classAbstractDiskMap<K,V>
-
-