Enum Class FileType

java.lang.Object
java.lang.Enum<FileType>
com.kazurayam.materialstore.core.FileType
All Implemented Interfaces:
IFileType, Jsonifiable, TemplateReady, Serializable, Comparable<FileType>, Constable

public enum FileType extends Enum<FileType> implements IFileType
  • Enum Constant Details

    • BMP

      public static final FileType BMP
    • CSS

      public static final FileType CSS
      Cascading Style Sheet
    • CSV

      public static final FileType CSV
      Comma Separated Values
    • DOC

      public static final FileType DOC
      Microsoft Word document file
    • DOCX

      public static final FileType DOCX
    • DOT

      public static final FileType DOT
      Graphviz DOT file
    • GIF

      public static final FileType GIF
    • HTML

      public static final FileType HTML
      ".html"
    • JAR

      public static final FileType JAR
    • JPG

      public static final FileType JPG
    • JPEG

      public static final FileType JPEG
    • JS

      public static final FileType JS
    • JSON

      public static final FileType JSON
    • MD

      public static final FileType MD
      Markdown text file
    • MHTML

      public static final FileType MHTML
      MIME HTML file
    • PDF

      public static final FileType PDF
    • PNG

      public static final FileType PNG
      Portable Network Graphics
    • POM

      public static final FileType POM
      Project Object Model file of Maven
    • PPT

      public static final FileType PPT
      Microsoft PowerPoint file
    • PPTX

      public static final FileType PPTX
    • SVG

      public static final FileType SVG
      Scalable Vector Graphics file
    • TAR

      public static final FileType TAR
    • TGZ

      public static final FileType TGZ
    • TXT

      public static final FileType TXT
      a Text file with extention ".txt"
    • XLS

      public static final FileType XLS
      Micorosft Excel file
    • XLSM

      public static final FileType XLSM
      Microsoft Excel file with Macro
    • XLSX

      public static final FileType XLSX
    • XML

      public static final FileType XML
    • ZIP

      public static final FileType ZIP
    • WOFF2

      public static final FileType WOFF2
      Web Open Font Format
    • UNSUPPORTED

      public static final FileType UNSUPPORTED
      a file extension ".UNSUPPORTED"
    • NULL_OBJECT

      public static final FileType NULL_OBJECT
      an empty string "" as file extension
    • NO_COUNTERPART

      public static final FileType NO_COUNTERPART
      https://github.com/kazurayam/materialstore/issues/423
  • Method Details

    • values

      public static FileType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getExtension

      public String getExtension()
      Specified by:
      getExtension in interface IFileType
    • getDiffability

      public FileTypeDiffability getDiffability()
      Specified by:
      getDiffability in interface IFileType
    • getMimeTypes

      public List<String> getMimeTypes()
      Specified by:
      getMimeTypes in interface IFileType
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FileType>