Class FormatterProfileReader
java.lang.Object
org.jboss.forge.roaster.model.util.FormatterProfileReader
Reads Formatter profiles
- Author:
- George Gastaldi
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormatterProfileReaderfromEclipseXml(InputStream inputStream) Creates a newFormatterProfileReaderinstance.Get the default settings.Returns the profile names in thisFormatterProfileReader.getPropertiesFor(String formatterName) Returns thePropertiesrelated to the formatter name.
-
Method Details
-
fromEclipseXml
Creates a newFormatterProfileReaderinstance.- Parameters:
inputStream- a XML with the Eclipse Formatter format- Returns:
- a new generated FormatterProfileReader
- Throws:
IOException- if the reading fails because of an IO eventIllegalStateException- if the reading fails because of an internal error
-
getDefaultProperties
Get the default settings.- Returns:
- the default settings for
FormatterProfileReader
-
getPropertiesFor
Returns thePropertiesrelated to the formatter name.- Parameters:
formatterName- the formatter name- Returns:
- the properties related to the given formatter name
-
getProfileNames
Returns the profile names in thisFormatterProfileReader.- Returns:
- the profiler names
-