Class EmailCache

All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>

public class EmailCache extends HashSet<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 Details

  • Method Details

    • getFile

      public File getFile()
    • read

      public void read() throws IOException
      Reads all data from file
      Throws:
      IOException - unable to read the cache file
    • write

      public void write() throws IOException
      Writes all entries into the file
      Throws:
      IOException - unable to write the cache file
    • append

      public void append() throws IOException
      Appends the last entry to the file
      Throws:
      IOException - error writing the CSV file
    • put

      public void put(String mailID)