Class FormatterProfileReader

java.lang.Object
org.jboss.forge.roaster.model.util.FormatterProfileReader

public class FormatterProfileReader extends Object
Reads Formatter profiles
Author:
George Gastaldi
  • Method Details

    • fromEclipseXml

      public static FormatterProfileReader fromEclipseXml(InputStream inputStream) throws IOException
      Creates a new FormatterProfileReader instance.
      Parameters:
      inputStream - a XML with the Eclipse Formatter format
      Returns:
      a new generated FormatterProfileReader
      Throws:
      IOException - if the reading fails because of an IO event
      IllegalStateException - 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 the Properties related 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 this FormatterProfileReader.
      Returns:
      the profiler names