public class FileUtil extends Object implements FileUtilIntf
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeFileStream() |
void |
copyFile(String aToBucketName,
String aToFileName) |
void |
createDirectory(String aDirectoryName) |
void |
deleteFile() |
String |
getBucketName() |
BufferedImage |
getBufferedImage() |
BufferedReader |
getBufferedReader() |
String |
getCredentialsProfile() |
byte[] |
getFileBytes() |
String |
getFileExt() |
String |
getFileName() |
long |
getFileSize() |
InputStream |
getInputStream() |
Object |
getRegion() |
String |
getTempFilePath() |
String |
getURI() |
void |
init(Object aRegion,
String aCredentialsProfile) |
void |
initFileStream(String aTmpFileName,
String anExtension,
boolean aDeleteOnExit) |
void |
saveFile(File aFile) |
void |
saveFileLocal(String aNewPath) |
void |
saveObject(ConvertibleOutputStream aStream) |
void |
saveObject(String aData) |
void |
setBucketName(String aBucketName) |
void |
setFileName(String aFileName) |
void |
shutdown() |
void |
writeBufferedImage(BufferedImage aBufferedImage) |
void |
writeFileStream(String aData) |
public void init(Object aRegion, String aCredentialsProfile) throws Exception
init in interface FileUtilIntfExceptionpublic Object getRegion()
getRegion in interface FileUtilIntfpublic String getCredentialsProfile()
getCredentialsProfile in interface FileUtilIntfpublic String getBucketName()
getBucketName in interface FileUtilIntfpublic void setBucketName(String aBucketName) throws Exception
setBucketName in interface FileUtilIntfExceptionpublic String getFileName()
getFileName in interface FileUtilIntfpublic void setFileName(String aFileName)
setFileName in interface FileUtilIntfpublic void saveFile(File aFile) throws Exception
saveFile in interface FileUtilIntfExceptionpublic void saveObject(String aData) throws Exception
saveObject in interface FileUtilIntfExceptionpublic void saveObject(ConvertibleOutputStream aStream) throws Exception
saveObject in interface FileUtilIntfExceptionpublic String getTempFilePath()
getTempFilePath in interface FileUtilIntfpublic void initFileStream(String aTmpFileName, String anExtension, boolean aDeleteOnExit) throws Exception
initFileStream in interface FileUtilIntfExceptionpublic void writeFileStream(String aData) throws Exception
writeFileStream in interface FileUtilIntfExceptionpublic void closeFileStream()
throws Exception
closeFileStream in interface FileUtilIntfExceptionpublic byte[] getFileBytes()
throws Exception
getFileBytes in interface FileUtilIntfExceptionpublic InputStream getInputStream() throws Exception
getInputStream in interface FileUtilIntfExceptionpublic BufferedReader getBufferedReader() throws Exception
getBufferedReader in interface FileUtilIntfExceptionpublic String getURI() throws Exception
getURI in interface FileUtilIntfExceptionpublic BufferedImage getBufferedImage() throws Exception
getBufferedImage in interface FileUtilIntfExceptionpublic void writeBufferedImage(BufferedImage aBufferedImage) throws Exception
writeBufferedImage in interface FileUtilIntfExceptionpublic long getFileSize()
getFileSize in interface FileUtilIntfpublic void saveFileLocal(String aNewPath) throws Exception
saveFileLocal in interface FileUtilIntfExceptionpublic void copyFile(String aToBucketName, String aToFileName) throws Exception
copyFile in interface FileUtilIntfExceptionpublic void deleteFile()
throws Exception
deleteFile in interface FileUtilIntfExceptionpublic void createDirectory(String aDirectoryName)
createDirectory in interface FileUtilIntfpublic String getFileExt()
getFileExt in interface FileUtilIntfpublic void shutdown()
shutdown in interface FileUtilIntfCopyright © 2020. All rights reserved.