程序包 top.lieder

类 FileManager

java.lang.Object
top.lieder.FileManager

public class FileManager extends Object
  • 构造器详细资料

    • FileManager

      public FileManager()
  • 方法详细资料

    • getPathInEnvironment

      public static String getPathInEnvironment(String path)
    • uploadFile

      public static void uploadFile(ResResult resResult, org.springframework.web.multipart.MultipartFile file, String ossSubPath, String name)
    • uploadFile

      public static String uploadFile(org.springframework.web.multipart.MultipartFile file, String ossSubPath, String name) throws Exception
      抛出:
      Exception
    • uploadFile

      public static String uploadFile(InputStream inputStream, String ossSubPath, String name)
    • updateFile

      public static void updateFile(ResResult resResult, String oldUrl, org.springframework.web.multipart.MultipartFile newFile, String newOssPath, String newName)
    • updateFile

      public static String updateFile(String oldUrl, org.springframework.web.multipart.MultipartFile newFile, String newOssPath, String newName) throws Exception
      抛出:
      Exception
    • getOSSFile

      public static InputStream getOSSFile(String url)
    • getOSSFileString

      public static String getOSSFileString(String url) throws Exception
      抛出:
      Exception
    • getUrlFileString

      public static String getUrlFileString(String urlString) throws Exception
      抛出:
      Exception
    • assembleFileDataInfoHttpResponse

      public static void assembleFileDataInfoHttpResponse(byte[] data, String fileName, javax.servlet.http.HttpServletResponse response) throws Exception
      抛出:
      Exception