Class FormatterProfileReader
- java.lang.Object
-
- org.jboss.forge.roaster.model.util.FormatterProfileReader
-
public class FormatterProfileReader extends Object
Reads Formatter profiles- Author:
- George Gastaldi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormatterProfileReaderfromEclipseXml(InputStream inputStream)Creates a newFormatterProfileReaderinstance.PropertiesgetDefaultProperties()Get the default settings.Set<String>getProfileNames()Returns the profile names in thisFormatterProfileReader.PropertiesgetPropertiesFor(String formatterName)Returns thePropertiesrelated to the formatter name.
-
-
-
Method Detail
-
fromEclipseXml
public static FormatterProfileReader fromEclipseXml(InputStream inputStream) throws IOException
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
public Properties getDefaultProperties()
Get the default settings.- Returns:
- the default settings for
FormatterProfileReader
-
getPropertiesFor
public Properties getPropertiesFor(String formatterName)
Returns thePropertiesrelated to the formatter name.- Parameters:
formatterName- the formatter name- Returns:
- the properties related to the given formatter name
-
getProfileNames
public Set<String> getProfileNames()
Returns the profile names in thisFormatterProfileReader.- Returns:
- the profiler names
-
-