Skip navigation links
com.auxiliary.tool.file

Enum FileSuffixType

    • Enum Constant Detail

      • XLS

        public static final FileSuffixType XLS
        旧版excel文件格式
        Since:
        autest 3.8.0
      • XLSX

        public static final FileSuffixType XLSX
        新版excel文件格式
        Since:
        autest 3.8.0
      • DOC

        public static final FileSuffixType DOC
        旧版word文件格式
        Since:
        autest 3.8.0
      • DOCX

        public static final FileSuffixType DOCX
        新版word文件格式
        Since:
        autest 3.8.0
      • PPT

        public static final FileSuffixType PPT
        旧版ppt文件格式
        Since:
        autest 3.8.0
      • PPTX

        public static final FileSuffixType PPTX
        新版ppt文件格式
        Since:
        autest 3.8.0
      • TXT

        public static final FileSuffixType TXT
        纯文本文件格式
        Since:
        autest 3.8.0
      • CSV

        public static final FileSuffixType CSV
        csv数据表格文件格式
        Since:
        autest 3.8.0
      • JPG

        public static final FileSuffixType JPG
        jpg图片文件格式
        Since:
        autest 3.8.0
      • JPEG

        public static final FileSuffixType JPEG
        jpeg图片文件格式
        Since:
        autest 3.8.0
      • GIF

        public static final FileSuffixType GIF
        gif图片文件格式
        Since:
        autest 3.8.0
      • PNG

        public static final FileSuffixType PNG
        png图片文件格式
        Since:
        autest 3.8.0
      • BMP

        public static final FileSuffixType BMP
        bmp图片文件格式
        Since:
        autest 3.8.0
    • Method Detail

      • values

        public static FileSuffixType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FileSuffixType c : FileSuffixType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileSuffixType valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • typeText2Type

        public static FileSuffixType typeText2Type(String type)
        该方法用于将枚举文本转换为文件后缀枚举

        名称不区分大小写,允许直接传入整个文件名名称,当传入整个文件名时,以“.”符号进行判断,取“.”符号之后内容为后缀名的有效内容

        Parameters:
        type - 枚举文本内容
        Returns:
        转换后的枚举
        Throws:
        IllegalArgumentException - 当枚举文本为空或不能转换成枚举时抛出的异常
        Since:
        autest 3.8.0

Copyright © 2024. All rights reserved.