|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AdminFileMgrIf
AdminFileMgrIf
| Method Summary | |
|---|---|
boolean |
deleteFile(java.lang.String fileName)
Delete the file. |
AdminFile[] |
getConfigFiles()
Returns an array containing the configuration files. |
java.lang.String |
getFileContents(java.lang.String fileName)
Get the file contents. |
byte[] |
getFileContentsAsByteArray(java.lang.String fileName)
Get the file contents as a byte array. |
AdminFile[] |
getFiles(java.lang.String directory,
java.lang.String extension)
Returns an array of files found in the directory. |
void |
saveFileContents(java.lang.String fileName,
java.lang.String fileContents)
Writes the specified file contents into the specified file. |
| Method Detail |
|---|
java.lang.String getFileContents(java.lang.String fileName)
throws KKAdminException
fileName - the filename in the server's context
KKAdminException - if the file's not present or can't be read, or it's not a text file
byte[] getFileContentsAsByteArray(java.lang.String fileName)
throws KKAdminException
fileName - the filename in the server's context
KKAdminException - if the file's not present or can't be read
void saveFileContents(java.lang.String fileName,
java.lang.String fileContents)
throws KKAdminException
fileName - the filename in the server's contextfileContents - the file contents to write
KKAdminException - on any Security or IO problems that prevent us from saving the data to the file.
boolean deleteFile(java.lang.String fileName)
throws KKAdminException
fileName - the filename in the server's context
KKAdminException - if the file's not present or can't be deleted
AdminFile[] getConfigFiles()
throws KKAdminException
KKAdminException
AdminFile[] getFiles(java.lang.String directory,
java.lang.String extension)
throws KKAdminException
directory - The directory containing the filesextension - The extension of the files. If null, all files are returned.
KKAdminException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||