Class FormatterProfileReader


  • public class FormatterProfileReader
    extends java.lang.Object
    Reads Formatter profiles
    Author:
    George Gastaldi
    • Method Detail

      • fromEclipseXml

        public static FormatterProfileReader fromEclipseXml​(java.io.InputStream inputStream)
                                                     throws java.io.IOException
        Creates a new FormatterProfileReader instance.
        Parameters:
        inputStream - a XML with the Eclipse Formatter format
        Returns:
        a new generated FormatterProfileReader
        Throws:
        java.io.IOException - if the reading fails because of an IO event
        java.lang.IllegalStateException - if the reading fails because of an internal error
      • getDefaultProperties

        public java.util.Properties getDefaultProperties()
        Get the default settings.
        Returns:
        the default settings for FormatterProfileReader
      • getPropertiesFor

        public java.util.Properties getPropertiesFor​(java.lang.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 java.util.Set<java.lang.String> getProfileNames()
        Returns the profile names in this FormatterProfileReader.
        Returns:
        the profiler names