Package com.logicaldoc.impex
Class ArchiveCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
String>
Implements a cache of imported documents, basically an archive cache is a Map
(index_document_id - document_id).
- Since:
- 4.5
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
-
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ArchiveCache
- Throws:
IOException
-
-
Method Details
-
getFile
-
read
Reads all data from file- Throws:
IOException
- cannot read the cache file
-
write
Writes all entries into the file- Throws:
IOException
- cannot write the cache file
-
append
Appends the last entry to the file- Throws:
IOException
- cannot write the cache file
-
put
-