public final enum

FileType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ 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.

Summary

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()
[Expand]
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.

Parameters
path path to a file
Returns
  • file type, never null

public static FileType valueOf (String name)

public static final FileType[] values ()