org.apache.geronimo.javamail.store.nntp.newsrc
Class NNTPNewsrcFile

java.lang.Object
  extended by org.apache.geronimo.javamail.store.nntp.newsrc.NNTPNewsrc
      extended by org.apache.geronimo.javamail.store.nntp.newsrc.NNTPNewsrcFile

public class NNTPNewsrcFile
extends NNTPNewsrc


Constructor Summary
NNTPNewsrcFile(File source)
          Construct a NNTPNewsrc object that is targetted at a file-based backing store.
 
Method Summary
 BufferedReader getInputReader()
          Retrieve an input reader for loading the newsrc file.
 Writer getOutputWriter()
          Obtain a writer for saving a newsrc file.
 
Methods inherited from class org.apache.geronimo.javamail.store.nntp.newsrc.NNTPNewsrc
close, getGroup, getGroups, load, save, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NNTPNewsrcFile

public NNTPNewsrcFile(File source)
Construct a NNTPNewsrc object that is targetted at a file-based backing store.

Parameters:
source - The source File for the .newsrc data.
Method Detail

getInputReader

public BufferedReader getInputReader()
                              throws IOException
Retrieve an input reader for loading the newsrc file.

Specified by:
getInputReader in class NNTPNewsrc
Returns:
A BufferedReader object for reading from the newsrc file.
Throws:
IOException

getOutputWriter

public Writer getOutputWriter()
                       throws IOException
Obtain a writer for saving a newsrc file.

Specified by:
getOutputWriter in class NNTPNewsrc
Returns:
The output writer targetted to the newsrc file.
Throws:
IOException


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.