net.sf.hermesftp.usermanager.impl
Class XmlFileReader

java.lang.Object
  extended by net.sf.hermesftp.usermanager.impl.XmlFileReader

public class XmlFileReader
extends java.lang.Object

Reads the user management configuration data from a file.

Author:
Lars Behnke

Constructor Summary
XmlFileReader()
           
 
Method Summary
 java.lang.String getFilename()
          Getter method for the java bean filename.
 UserManagerData read()
          Reads the user management data from a file.
 void setFilename(java.lang.String filename)
          Setter method for the java bean filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFileReader

public XmlFileReader()
Method Detail

getFilename

public java.lang.String getFilename()
Getter method for the java bean filename.

Returns:
Returns the value of the java bean filename.

setFilename

public void setFilename(java.lang.String filename)
Setter method for the java bean filename.

Parameters:
filename - The value of filename to set.

read

public UserManagerData read()
                     throws FtpConfigException
Reads the user management data from a file. If the file was not found the classpath is searched.

Returns:
The user management data.
Throws:
FtpConfigException - Error on reading or processing a configuration file.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.