de.esprit.common.type

## Class FileDataTypeRegistry

- java.lang.Object
- - de.esprit.common.type.FileDataTypeRegistry

-     public final class FileDataTypeRegistry
      extends java.lang.Object

  This class is used to resolve the `FileDataType` of a filename. You may add custom `FileDataTypeResolver` instances as needed. The last added resolver is asked first for resolving the filename.
  Author:
    Rainer Buesch

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `addResolver(FileDataTypeResolver resolver)`
    `static void` | `clear()` Clears the resolver-list.
    `static void` | `reset()` Clears the resolver-list and installs the default resolver which uses `FileExtension` for resolving.
    `static FileDataType` | `resolveFileDataTypeOf(java.io.File file)`
    `static FileDataType` | `resolveFileDataTypeOf(java.nio.file.Path path)`
    `static FileDataType` | `resolveFileDataTypeOf(java.lang.String fileName)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### resolveFileDataTypeOf

          public static FileDataType resolveFileDataTypeOf(java.lang.String fileName)

    - #### resolveFileDataTypeOf

          public static FileDataType resolveFileDataTypeOf(java.io.File file)

    - #### resolveFileDataTypeOf

          public static FileDataType resolveFileDataTypeOf(java.nio.file.Path path)

    - #### addResolver

          public static void addResolver(FileDataTypeResolver resolver)

    - #### clear

          public static void clear()

      Clears the resolver-list.

    - #### reset

          public static void reset()

      Clears the resolver-list and installs the default resolver which uses `FileExtension` for resolving.

Copyright © 2014 EsprIT-Systems. All Rights Reserved.