Package com.xmlmind.util

## Interface LoadText.EncodingDetector

- All Known Implementing Classes:
    `LoadText.EmacsStyleDetector`, `LoadText.EncodingDetectorBase`, `LoadText.HTMLCharsetDetector`, `LoadText.KeywordBasedDetector`, `LoadText.XMLEncodingDetector`
  Enclosing class:
    LoadText

      public static interface LoadText.EncodingDetector

  Detects an encoding by parsing an ASCII encoding specification (example: `@charset "UTF-8";`).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `detectEncoding​(String asciiHead)` | Parses specified few text lines and returns found encoding if any.

- - ### Method Detail

    - #### detectEncoding

          String detectEncoding​(String asciiHead)

      Parses specified few text lines and returns found encoding if any.
      Parameters:
        `asciiHead` - the first lines of a text file.
      Returns:
        found, valid encoding; `null` if not found or invalid.