org.omnaest.utils.propertyfile.content.parser
Class PropertyFileContentWriter

java.lang.Object
  extended by org.omnaest.utils.propertyfile.content.parser.PropertyFileContentWriter

public class PropertyFileContentWriter
extends Object

Offers functionality to write a given PropertyFileContent to disc.

Author:
Omnaest
See Also:
PropertyFileContent

Field Summary
protected static String LINE_SEPARATOR_OS_DEFAULT
           
 
Constructor Summary
PropertyFileContentWriter()
           
 
Method Summary
static void writePropertyFileContentToFile(PropertyFileContent propertyFileContent, File file, String fileEncoding)
           
static void writePropertyFileContentToOutputStreamWriter(PropertyFileContent propertyFileContent, OutputStreamWriter outputStreamWriter)
           
static String writePropertyFileContentToString(PropertyFileContent propertyFileContent)
          Returns the PropertyFileContent as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SEPARATOR_OS_DEFAULT

protected static final String LINE_SEPARATOR_OS_DEFAULT
Constructor Detail

PropertyFileContentWriter

public PropertyFileContentWriter()
Method Detail

writePropertyFileContentToFile

public static void writePropertyFileContentToFile(PropertyFileContent propertyFileContent,
                                                  File file,
                                                  String fileEncoding)
Parameters:
propertyFileContent -
file -
See Also:
PropertyFileContentParser

writePropertyFileContentToString

public static String writePropertyFileContentToString(PropertyFileContent propertyFileContent)
Returns the PropertyFileContent as String

Parameters:
propertyFileContent -
Returns:
See Also:
PropertyFileContentParser

writePropertyFileContentToOutputStreamWriter

public static void writePropertyFileContentToOutputStreamWriter(PropertyFileContent propertyFileContent,
                                                                OutputStreamWriter outputStreamWriter)
Parameters:
propertyFileContent -
outputStreamWriter -
See Also:
PropertyFileContentParser


Copyright © 2013. All Rights Reserved.