Package org.ec4j.core
Class EditorConfigLoader
java.lang.Object
org.ec4j.core.EditorConfigLoader
Implements the capability of loading an
EditorConfig object out of a Resource.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ErrorHandlerprivate final EditorConfigModelHandlerprivate final EditorConfigParser -
Constructor Summary
ConstructorsConstructorDescriptionEditorConfigLoader(EditorConfigModelHandler handler, ErrorHandler errorHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic EditorConfigLoaderdefault_()Loads anEditorConfigobject out of the givenconfigFile.static EditorConfigLoaderstatic EditorConfigLoaderof(Version version, PropertyTypeRegistry registry) static EditorConfigLoaderof(Version version, PropertyTypeRegistry registry, ErrorHandler errorHandler)
-
Field Details
-
errorHandler
-
handler
-
parser
-
-
Constructor Details
-
EditorConfigLoader
-
-
Method Details
-
default_
- Returns:
- a new
EditorConfigLoaderwithPropertyTypeRegistry.default_(),Version.CURRENTandErrorHandler.THROW_SYNTAX_ERRORS_IGNORE_OTHERS
-
of
-
of
-
of
public static EditorConfigLoader of(Version version, PropertyTypeRegistry registry, ErrorHandler errorHandler) -
load
Loads anEditorConfigobject out of the givenconfigFile.- Parameters:
configFile- theResourceto read the EditorConfig model from- Returns:
- a new
EditorConfiginstance - Throws:
IOException- on I/O problems during the reading from the givenResource
-