Package com.liferay.portal.kernel.util
Interface File
public interface File
- Author:
- Brian Wing Shun Chan, Alexander Chow
-
Method Summary
Modifier and TypeMethodDescriptionappendParentheticalSuffix
(String fileName, String suffix) appendSuffix
(String fileName, String suffix) void
copyDirectory
(File source, File destination) void
copyDirectory
(String sourceDirName, String destinationDirName) void
void
createTempFile
(byte[] bytes) createTempFile
(InputStream inputStream) createTempFile
(String extension) createTempFile
(String prefix, String extension) createTempFileName
(String extension) createTempFileName
(String prefix, String extension) decodeSafeFileName
(String fileName) boolean
boolean
void
void
encodeSafeFileName
(String fileName) boolean
boolean
getAbsolutePath
(File file) byte[]
byte[]
getBytes
(InputStream inputStream) byte[]
getBytes
(InputStream inputStream, int bufferSize) byte[]
getBytes
(InputStream inputStream, int bufferSize, boolean cleanUpStream) byte[]
getExtension
(String fileName) getMD5Checksum
(File file) getShortFileName
(String fullFileName) boolean
isSameContent
(File file, byte[] bytes, int length) boolean
isSameContent
(File file, String s) String[]
String[]
String[]
String[]
void
void
boolean
boolean
replaceSeparator
(String fileName) File[]
stripExtension
(String fileName) stripParentheticalSuffix
(String fileName) toProperties
(FileInputStream fileInputStream) toProperties
(String fileName) void
void
void
void
void
void
void
void
write
(File file, InputStream inputStream) void
void
void
void
void
write
(String fileName, InputStream inputStream) void
void
void
void
void
void
-
Method Details
-
appendParentheticalSuffix
-
appendSuffix
-
copyDirectory
- Throws:
IOException
-
copyDirectory
- Throws:
IOException
-
copyFile
- Throws:
IOException
-
copyFile
- Throws:
IOException
-
createTempFile
File createTempFile() -
createTempFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
createTempFile
-
createTempFile
-
createTempFileName
String createTempFileName() -
createTempFileName
-
createTempFileName
-
createTempFolder
- Throws:
IOException
-
decodeSafeFileName
-
delete
-
delete
-
deltree
-
deltree
-
encodeSafeFileName
-
exists
-
exists
-
getAbsolutePath
-
getBytes
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getBytes
- Throws:
IOException
-
getExtension
-
getMD5Checksum
- Throws:
IOException
-
getPath
-
getShortFileName
-
isSameContent
-
isSameContent
-
listDirs
-
listDirs
-
listFiles
-
listFiles
-
mkdirs
-
mkdirs
-
move
-
move
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
replaceSeparator
-
sortFiles
-
stripExtension
-
stripParentheticalSuffix
-
toList
-
toList
-
toProperties
-
toProperties
-
touch
- Throws:
IOException
-
touch
- Throws:
IOException
-
unzip
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
void write(String pathName, String fileName, String s, boolean lazy, boolean append) throws IOException - Throws:
IOException
-