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) voidcopyDirectory(File source, File destination) voidcopyDirectory(String sourceDirName, String destinationDirName) voidvoidcreateTempFile(byte[] bytes) createTempFile(InputStream inputStream) createTempFile(String extension) createTempFile(String prefix, String extension) createTempFileName(String extension) createTempFileName(String prefix, String extension) decodeSafeFileName(String fileName) booleanbooleanvoidvoidencodeSafeFileName(String fileName) booleanbooleangetAbsolutePath(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) booleanisSameContent(File file, byte[] bytes, int length) booleanisSameContent(File file, String s) String[]String[]String[]String[]voidvoidbooleanbooleanreplaceSeparator(String fileName) File[]stripExtension(String fileName) stripParentheticalSuffix(String fileName) toProperties(FileInputStream fileInputStream) toProperties(String fileName) voidvoidvoidvoidvoidvoidvoidvoidwrite(File file, InputStream inputStream) voidvoidvoidvoidvoidwrite(String fileName, InputStream inputStream) voidvoidvoidvoidvoidvoid
-
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
-