001/** 002 * Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com> 003 */ 004package com.typesafe.config; 005 006/** 007 * The syntax of a character stream (<a href="http://json.org">JSON</a>, <a 008 * href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON</a> 009 * aka ".conf", or <a href= 010 * "http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29" 011 * >Java properties</a>). 012 * 013 */ 014public enum ConfigSyntax { 015 /** 016 * Pedantically strict <a href="http://json.org">JSON</a> format; no 017 * comments, no unexpected commas, no duplicate keys in the same object. 018 * Associated with the <code>.json</code> file extension and 019 * <code>application/json</code> Content-Type. 020 */ 021 JSON, 022 /** 023 * The JSON-superset <a 024 * href="https://github.com/typesafehub/config/blob/master/HOCON.md" 025 * >HOCON</a> format. Associated with the <code>.conf</code> file extension 026 * and <code>application/hocon</code> Content-Type. 027 */ 028 CONF, 029 /** 030 * Standard <a href= 031 * "http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29" 032 * >Java properties</a> format. Associated with the <code>.properties</code> 033 * file extension and <code>text/x-java-properties</code> Content-Type. 034 */ 035 PROPERTIES; 036}