Class PropsConverter

java.lang.Object
jodd.props.PropsConverter

public class PropsConverter extends Object
Converter of Java Properties to Jodd Props format.
  • Constructor Details

    • PropsConverter

      public PropsConverter()
  • Method Details

    • convert

      public static void convert(Writer writer, Properties properties) throws IOException
      Convert Java Properties to Jodd Props format.
      Parameters:
      writer - Writer to write Props formatted file content to
      properties - Properties to convert to Props format
      Throws:
      IOException - On any I/O error when writing to the writer
    • convert

      public static void convert(Writer writer, Properties properties, Map<String, Properties> profiles) throws IOException
      Convert Java Properties to Jodd Props format.
      Parameters:
      writer - Writer to write Props formatted file content to
      properties - Properties to convert to Props format
      profiles - Properties per profile to convert and add to the Props format
      Throws:
      IOException - On any I/O error when writing to the writer