public class FilesController
extends java.lang.Object
| Constructor and Description |
|---|
FilesController(NodeRPCConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFile(java.lang.String srcPath,
java.lang.String destPath) |
void |
delete(java.lang.String path) |
java.io.Reader |
getDownloadReader(java.lang.String path) |
java.io.InputStream |
getDownloadStream(java.lang.String path) |
java.lang.String |
getHash(java.lang.String path) |
FileInfo |
getProperty(java.lang.String path) |
java.io.OutputStream |
getUploadStream(java.lang.String path) |
java.io.Writer |
getUploadWriter(java.lang.String path) |
java.util.List<FileInfo> |
listChildren(java.lang.String path) |
void |
moveFile(java.lang.String srcPath,
java.lang.String destPath) |
public FilesController(NodeRPCConnection connection)
public java.io.OutputStream getUploadStream(java.lang.String path)
throws HiveException
HiveExceptionpublic java.io.Writer getUploadWriter(java.lang.String path)
throws HiveException
HiveExceptionpublic java.io.InputStream getDownloadStream(java.lang.String path)
throws HiveException
HiveExceptionpublic java.io.Reader getDownloadReader(java.lang.String path)
throws HiveException
HiveExceptionpublic java.util.List<FileInfo> listChildren(java.lang.String path) throws HiveException
HiveExceptionpublic FileInfo getProperty(java.lang.String path) throws HiveException
HiveExceptionpublic java.lang.String getHash(java.lang.String path)
throws HiveException
HiveExceptionpublic void copyFile(java.lang.String srcPath,
java.lang.String destPath)
throws HiveException
HiveExceptionpublic void moveFile(java.lang.String srcPath,
java.lang.String destPath)
throws HiveException
HiveExceptionpublic void delete(java.lang.String path)
throws HiveException
HiveException