public class StoreFileMover extends Object
| Constructor and Description |
|---|
StoreFileMover()
Calculate file objects for the old and new configuration files.
|
StoreFileMover(String basename,
String filename,
String encoding)
Calculate file objects for the old and new configuration files.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBasename() |
File |
getConfigNew() |
File |
getConfigOld() |
File |
getConfigSave() |
String |
getEncoding() |
String |
getFilename() |
protected String |
getTimeTag()
Time value for backup yyyy-mm-dd.hh-mm-ss
|
PrintWriter |
getWriter()
Open an output writer for the new configuration file
|
void |
init()
generate the Filename to new with TimeStamp
|
void |
move()
Shuffle old->save and new->old
|
void |
setBasename(String basename) |
void |
setEncoding(String string) |
void |
setFilename(String string) |
public StoreFileMover(String basename, String filename, String encoding)
public StoreFileMover()
public File getConfigNew()
public File getConfigOld()
public File getConfigSave()
public String getBasename()
public void setBasename(String basename)
basename - The basename to set.public String getFilename()
public void setFilename(String string)
string - public String getEncoding()
public void setEncoding(String string)
string - public void init()
public void move()
throws IOException
IOExceptionpublic PrintWriter getWriter() throws IOException
IOExceptionprotected String getTimeTag()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.