public static function parseFile($file, $exceptionOnInvalidType = false, $objectSupport = false)
    {
        if (!is_readable($file)) {
            throw new Exception("File '$file' is not readable");
        }

        return self::parse(file_get_contents($file), $exceptionOnInvalidType, $objectSupport);
    }