Class PostingReader

java.lang.Object
org.ctan.site.services.postings.PostingReader
All Implemented Interfaces:
AutoCloseable

public class PostingReader extends Object implements AutoCloseable
This class provides a reader for mails from gzipped mail archive files.
  • Constructor Details

    • PostingReader

      public PostingReader(Reader r)
      This is the constructor for PostingReader.
      Parameters:
      r - the reader
  • Method Details

    • close

      public void close() throws IOException
      This method closes this reader and the attached input sources.
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException - in case of an I/O error during closing
    • read

      public Posting read() throws IOException
      This method reads a mail from this reader and returns it.
      Returns:
      the mail read or null at EOF
      Throws:
      IOException - in case of an I/O error