public class PropertyCollectionPrinter extends Object
PropertyCollection.
This is a tool class where you as a developer take a PropertyCollection instance and it will property.name = default.value to a Writer or a PrintStream. property.name = getDefaultValueAsString()
property.name = Default value invalid:exception.message
property.name = [NULL]
PropertyCollection,
Writer,
PrintStream,
PropertyType.getDefaultValueAsString()| Modifier and Type | Method and Description |
|---|---|
static void |
generatePropertyFileContents(PropertyCollection collection)
Will write the IPropertyCollection to the PrintStream
System.out. |
static void |
generatePropertyFileContents(PropertyCollection collection,
File file)
Will write the IPropertyCollection to a file.
|
static void |
generatePropertyFileContents(PropertyCollection collection,
PrintStream printStream)
Will write the IPropertyCollection to a
java.io.PrintStream. |
static void |
generatePropertyFileContents(PropertyCollection collection,
Writer writer)
Will write the IPropertyCollection to a
java.io.Writer. |
public static void generatePropertyFileContents(PropertyCollection collection, File file) throws IOException
collection - the IPropertyCollection to printfile - the file to write to, this will be created/overwritten.IOException - for any IOExceptionFileWriter,
IOException,
PropertyCollection,
Filepublic static void generatePropertyFileContents(PropertyCollection collection, Writer writer) throws IOException
java.io.Writer. See class description. collection - the IPropertyCollection to print.writer - the Writer to write to.IOException - for any IOExceptionWriter,
IOException,
PropertyCollectionpublic static void generatePropertyFileContents(PropertyCollection collection, PrintStream printStream)
java.io.PrintStream. See class description. collection - the IPropertyCollection to printprintStream - the PrintStream to write to.PrintStream,
PropertyCollectionpublic static void generatePropertyFileContents(PropertyCollection collection)
System.out. See class description. collection - the IPropertyCollection to print