public class FileUtils
extends cn.hutool.core.io.FileUtil
| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
percentEncode(String s)
百分号编码工具方法
|
static void |
setAttachmentResponseHeader(javax.servlet.http.HttpServletResponse response,
String realFileName)
下载文件名重新编码
|
appendLines, appendLines, appendLines, appendLines, appendString, appendString, appendString, appendString, appendUtf8Lines, appendUtf8Lines, appendUtf8String, appendUtf8String, checkSlip, checksum, checksumCRC32, clean, clean, cleanEmpty, cleanInvalid, containsInvalid, contentEquals, contentEqualsIgnoreEOL, convertCharset, convertLineSeparator, copy, copy, copyContent, copyFile, copyFile, copyFilesFromDir, createRandomAccessFile, createRandomAccessFile, createTempFile, createTempFile, createTempFile, createTempFile, createTempFile, createTempFile, del, del, equals, exist, exist, exist, extName, extName, file, file, file, file, file, file, file, getAbsolutePath, getAbsolutePath, getAbsolutePath, getBOMInputStream, getBOMReader, getCanonicalPath, getInputStream, getInputStream, getLineSeparator, getMimeType, getName, getName, getOutputStream, getOutputStream, getParent, getParent, getPrefix, getPrefix, getPrintWriter, getPrintWriter, getPrintWriter, getPrintWriter, getReader, getReader, getReader, getReader, getSuffix, getSuffix, getTmpDir, getTmpDirPath, getTotalLines, getType, getUserHomeDir, getUserHomePath, getUtf8Reader, getUtf8Reader, getWebRoot, getWriter, getWriter, getWriter, getWriter, isAbsolutePath, isDirectory, isDirectory, isDirEmpty, isEmpty, isFile, isFile, isModifed, isModified, isNotEmpty, isSub, isSymlink, isWindows, lastIndexOfSeparator, lastModifiedTime, lastModifiedTime, listFileNames, load, load, load, loadUtf8, loadUtf8, loopFiles, loopFiles, loopFiles, loopFiles, loopFiles, ls, mainName, mainName, mkdir, mkdir, mkdirsSafely, mkParentDirs, mkParentDirs, move, moveContent, newerThan, newerThan, newFile, normalize, pathEndsWith, pathEquals, readableFileSize, readableFileSize, readBytes, readBytes, readLine, readLine, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readLines, readString, readString, readString, readString, readString, readString, readUtf8Lines, readUtf8Lines, readUtf8Lines, readUtf8Lines, readUtf8Lines, readUtf8Lines, readUtf8Lines, readUtf8String, readUtf8String, rename, rename, size, size, subPath, subPath, tail, tail, tail, touch, touch, touch, touch, walkFiles, writeBytes, writeBytes, writeBytes, writeFromStream, writeFromStream, writeFromStream, writeLines, writeLines, writeLines, writeLines, writeLines, writeLines, writeLines, writeLines, writeMap, writeString, writeString, writeString, writeString, writeToStream, writeToStream, writeUtf8Lines, writeUtf8Lines, writeUtf8Map, writeUtf8String, writeUtf8Stringcopy, copyContent, copyFile, copyFile, del, delFile, equals, exists, getAttributes, getInputStream, getLastPathEle, getMimeType, getName, getOutputStream, getPathEle, getReader, getUtf8Reader, isDirectory, isDirectory, isDirEmpty, isFile, isSub, isSymlink, loopFiles, loopFiles, mkdir, mkParentDirs, move, moveContent, readBytes, rename, subPath, toAbsNormal, walkFiles, walkFilespublic static void setAttachmentResponseHeader(javax.servlet.http.HttpServletResponse response,
String realFileName)
throws UnsupportedEncodingException
response - 响应对象realFileName - 真实文件名UnsupportedEncodingExceptionpublic static String percentEncode(String s) throws UnsupportedEncodingException
s - 需要百分号编码的字符串UnsupportedEncodingExceptionCopyright © 2022. All rights reserved.