Package com.logicaldoc.email
Class EmailCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,Set<String>
Implements a cache of imported email, basically a email cache is represented
as an mailID.
- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
EmailCache
- Throws:
IOException
-
-
Method Details
-
getFile
-
read
Reads all data from file- Throws:
IOException
- unable to read the cache file
-
write
Writes all entries into the file- Throws:
IOException
- unable to write the cache file
-
append
Appends the last entry to the file- Throws:
IOException
- error writing the CSV file
-
put
-