edu.jhu.tmaj.util.file
Class FileUtilImpl
java.lang.Object
edu.jhu.tmaj.util.file.FileUtilImpl
- All Implemented Interfaces:
- FileUtil, java.io.Serializable
public class FileUtilImpl
- extends java.lang.Object
- implements FileUtil, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
void |
copyFile(java.io.File source,
java.io.File target)
|
byte[] |
readBinaryFile(java.io.File file)
|
java.util.List<java.lang.String> |
readTextFile(java.io.File file)
|
java.io.File |
renameFile(java.io.File file,
java.lang.String newName)
|
void |
writeBinaryFile(java.io.File file,
byte[] bytes)
|
void |
writeTextFile(java.io.File file,
java.util.List<java.lang.String> lines)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtilImpl
public FileUtilImpl()
copyFile
public void copyFile(java.io.File source,
java.io.File target)
- Specified by:
copyFile
in interface FileUtil
readBinaryFile
public byte[] readBinaryFile(java.io.File file)
- Specified by:
readBinaryFile
in interface FileUtil
readTextFile
public java.util.List<java.lang.String> readTextFile(java.io.File file)
- Specified by:
readTextFile
in interface FileUtil
renameFile
public java.io.File renameFile(java.io.File file,
java.lang.String newName)
- Specified by:
renameFile
in interface FileUtil
writeBinaryFile
public void writeBinaryFile(java.io.File file,
byte[] bytes)
- Specified by:
writeBinaryFile
in interface FileUtil
writeTextFile
public void writeTextFile(java.io.File file,
java.util.List<java.lang.String> lines)
- Specified by:
writeTextFile
in interface FileUtil