|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.sourceforge.simplefh.impl.SimpleFileAccessorImpl
public class SimpleFileAccessorImpl
SimpleFileAccessor| Constructor Summary | |
|---|---|
SimpleFileAccessorImpl()
|
|
| Method Summary | |
|---|---|
String |
basename(File file)
Get basename from path simply. |
String |
basename(String path)
Get basename from path simply. |
void |
copy(ClassPathResource src,
ClassPathResource dest)
Copy file simply. |
void |
copy(File srcFile,
String dest)
Copy file simply. |
void |
copy(String src,
String dest)
Copy file simply. |
void |
delete(ClassPathResource resourcePath)
Delete file simply. |
void |
delete(File targetFile)
Delete file simply. |
void |
delete(String filepath)
Delete file simply. |
void |
deleteIfExists(ClassPathResource resourcePath)
Delete file simply if target file exists. |
void |
deleteIfExists(File targetFile)
Delete file simply if target file exists. |
void |
deleteIfExists(String path)
Delete file simply if target file exists. |
String |
dirname(File file)
Get dirname from path simply. |
String |
dirname(String path)
Get dirname from path simply. |
boolean |
fileExist(ClassPathResource resourcePath)
Check file exist. |
boolean |
fileExist(File file)
Check file exist. |
boolean |
fileExist(String path)
Check file exist. |
void |
move(ClassPathResource from,
ClassPathResource to)
Move file simply. |
void |
move(File targetFile,
String toPath)
Move file simply. |
void |
move(String fromPath,
String toPath)
Move file simply. |
void |
rename(ClassPathResource resource,
String newFilename)
Rename file simply. |
void |
rename(File file,
String newFilename)
Rename file simply. |
void |
rename(String path,
String newFilename)
Rename file simply. |
void |
touch(ClassPathResource resourcePath)
Touch file simply. |
void |
touch(File file)
Touch file simply. |
void |
touch(String path)
Touch file simply. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFileAccessorImpl()
| Method Detail |
|---|
public String dirname(String path)
SimpleFileAccessor
dirname in interface SimpleFileAccessorpath - target file path
SimpleFileAccessor.dirname(java.lang.String)public String dirname(File file)
SimpleFileAccessor
dirname in interface SimpleFileAccessorfile - target file object
SimpleFileAccessor.dirname(java.io.File)public String basename(String path)
SimpleFileAccessor
basename in interface SimpleFileAccessorpath - target path
SimpleFileAccessor.basename(java.lang.String)public String basename(File file)
SimpleFileAccessor
basename in interface SimpleFileAccessorfile - target file object
SimpleFileAccessor.basename(java.io.File)
public void copy(String src,
String dest)
throws IOException
SimpleFileAccessor
copy in interface SimpleFileAccessorsrc - src file pathdest - dest file path
IOException - cannot copy filejp.sourceforge.simplefh.SimpleFileAccessor#copy(java.lang.String,
java.io.String)
public void copy(File srcFile,
String dest)
throws IOException
SimpleFileAccessor
copy in interface SimpleFileAccessorsrcFile - src filedest - dest file path
IOException - cannot copy fileSimpleFileAccessor.copy(java.io.File,
java.lang.String)
public void copy(ClassPathResource src,
ClassPathResource dest)
throws IOException
SimpleFileAccessor
copy in interface SimpleFileAccessorsrc - ClassPathResource objectdest - ClassPathResource object
IOException - cannot access resourcesjp.sourceforge.simplefh.SimpleFileAccessor#copy(jp.sourceforge.simplefh
.ClassPathResource, jp.sourceforge.simplefh.ClassPathResource)
public void delete(String filepath)
throws IOException
SimpleFileAccessor
delete in interface SimpleFileAccessorfilepath - target file path
IOException - cannot delete fileSimpleFileAccessor.delete(java.lang.String)
public void delete(ClassPathResource resourcePath)
throws IOException
SimpleFileAccessor
delete in interface SimpleFileAccessorresourcePath - ClassPathResource object
IOException - cannot access resourcesjp.sourceforge.simplefh.SimpleFileAccessor#delete(jp.sourceforge.simplefh
.ClassPathResource)
public void delete(File targetFile)
throws IOException
SimpleFileAccessor
delete in interface SimpleFileAccessortargetFile - target file object
IOException - cannot delete fileSimpleFileAccessor.delete(java.io.File)
public void deleteIfExists(String path)
throws IOException
SimpleFileAccessor
deleteIfExists in interface SimpleFileAccessorpath - target file path
IOException - cannot delete fileSimpleFileAccessor.deleteIfExists(java.lang.String)
public void deleteIfExists(ClassPathResource resourcePath)
throws IOException
SimpleFileAccessor
deleteIfExists in interface SimpleFileAccessorresourcePath - ClassPathResource object
IOException - cannot access resourcesSimpleFileAccessor.deleteIfExists(jp.sourceforge.simplefh.ClassPathResource)
public void deleteIfExists(File targetFile)
throws IOException
SimpleFileAccessor
deleteIfExists in interface SimpleFileAccessortargetFile - target file object
IOException - cannot delete fileSimpleFileAccessor.deleteIfExists(java.io.File)
public void move(String fromPath,
String toPath)
throws IOException
SimpleFileAccessor
move in interface SimpleFileAccessorfromPath - from file pathtoPath - to file path
IOException - cannot move fileSimpleFileAccessor.move(java.lang.String,
java.lang.String)
public void move(ClassPathResource from,
ClassPathResource to)
throws IOException
SimpleFileAccessor
move in interface SimpleFileAccessorfrom - ClassPathResource from resourceto - ClassPathResource to resource
IOException - cannot access resourcesjp.sourceforge.simplefh.SimpleFileAccessor#move(jp.sourceforge.simplefh
.ClassPathResource, jp.sourceforge.simplefh.ClassPathResource)
public void move(File targetFile,
String toPath)
throws IOException
SimpleFileAccessor
move in interface SimpleFileAccessortargetFile - from file objecttoPath - to file path
IOException - cannot move fileSimpleFileAccessor.move(java.io.File,
java.lang.String)
public void rename(String path,
String newFilename)
throws IOException
SimpleFileAccessor
rename in interface SimpleFileAccessorpath - target file pathnewFilename - new file name
IOException - cannot rename fileSimpleFileAccessor.rename(java.lang.String,
java.lang.String)
public void rename(ClassPathResource resource,
String newFilename)
throws IOException
SimpleFileAccessor
rename in interface SimpleFileAccessorresource - ClassPathResource resourcenewFilename - new file name
IOException - cannot access resourcesjp.sourceforge.simplefh.SimpleFileAccessor#rename(jp.sourceforge.simplefh
.ClassPathResource, java.lang.String)
public void rename(File file,
String newFilename)
throws IOException
SimpleFileAccessor
rename in interface SimpleFileAccessorfile - target file objectnewFilename - new file name
IOException - cannot rename fileSimpleFileAccessor.rename(java.io.File,
java.lang.String)
public void touch(String path)
throws IOException
SimpleFileAccessor
touch in interface SimpleFileAccessorpath - target file path
IOException - cannot touch fileSimpleFileAccessor.touch(java.lang.String)
public void touch(ClassPathResource resourcePath)
throws IOException
SimpleFileAccessor
touch in interface SimpleFileAccessorresourcePath - ClassPathResource resource
IOException - cannot access resourcesjp.sourceforge.simplefh.SimpleFileAccessor#touch(jp.sourceforge.simplefh
.ClassPathResource)
public void touch(File file)
throws IOException
SimpleFileAccessor
touch in interface SimpleFileAccessorfile - target file object
IOException - cannot touch fileSimpleFileAccessor.touch(java.io.File)public boolean fileExist(String path)
SimpleFileAccessor
fileExist in interface SimpleFileAccessorpath - target file path
SimpleFileAccessor.fileExist(java.lang.String)public boolean fileExist(File file)
SimpleFileAccessor
fileExist in interface SimpleFileAccessorfile - target file object
SimpleFileAccessor.fileExist(java.io.File)public boolean fileExist(ClassPathResource resourcePath)
SimpleFileAccessor
fileExist in interface SimpleFileAccessorresourcePath - ClassPathResource resource
jp.sourceforge.simplefh.SimpleFileAccessor#fileExist(jp.sourceforge.simplefh
.ClassPathResource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||