public class FileStylingDefinition
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkForBOMInFile(java.io.File inputfile)
Checks if the given file starts with a Byte-Order-Mark (BOM)
|
static void |
checkForUtf8(java.io.File inputfile)
Checks the given file if it is encoded in UTF-8
|
public static void checkForUtf8(java.io.File inputfile)
throws java.lang.Exception
inputfile - Filejava.lang.Exception - if the File is not encoded in UTF-8 an Exception will be
thrownpublic static void checkForBOMInFile(java.io.File inputfile)
throws java.lang.Exception
inputfile - Filejava.lang.Exception - if the File holds a BOM an Exception will be thrown