public final enum


extends Enum<E extends Enum<E>>
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pnfsoftware.jeb.util.base.FileType

Class Overview

Simple file type determination routine primarily based on path extension, and optionally, file contents.


Enum Values
FileType  AUDIO   
FileType  HTML   
FileType  IMAGE   
FileType  TEXT   
FileType  UNKNOWN   
FileType  VIDEO   
FileType  XML   
Public Methods
static FileType determine(String path)
Determine the high-level file type.
static FileType valueOf(String name)
final static FileType[] values()
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final FileType AUDIO

public static final FileType HTML

public static final FileType IMAGE

public static final FileType TEXT

public static final FileType UNKNOWN

public static final FileType VIDEO

public static final FileType XML

Public Methods

public static FileType determine (String path)

Determine the high-level file type. The file extension is used first; if the type cannot be determined from extension, the file contents may be examined.

path path to a file
  • file type, never null

public static FileType valueOf (String name)

public static final FileType[] values ()