[ini4j]

org.ini4j.spi
Class IniFormatter

Object
  extended by IniFormatter
All Implemented Interfaces:
IniHandler, OptionHandler
Direct Known Subclasses:
FancyIniFormatter

public class IniFormatter
extends Object
implements IniHandler


Constructor Summary
IniFormatter()
           
 
Method Summary
 void endIni()
           
 void endSection()
           
protected  String escape(String input)
           
 Config getConfig()
           
protected  PrintWriter getOutput()
           
 void handleOption(String optionName, String optionValue)
           
protected static IniFormatter newInstance()
           
static IniFormatter newInstance(OutputStream out)
           
static IniFormatter newInstance(OutputStream out, Config config)
           
static IniFormatter newInstance(Writer out)
           
static IniFormatter newInstance(Writer out, Config config)
           
protected  void setConfig(Config value)
           
protected  void setOutput(PrintWriter value)
           
 void startIni()
           
 void startSection(String sectionName)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IniFormatter

public IniFormatter()
Method Detail

newInstance

public static IniFormatter newInstance(Writer out)

newInstance

public static IniFormatter newInstance(OutputStream out)

newInstance

public static IniFormatter newInstance(Writer out,
                                       Config config)

newInstance

public static IniFormatter newInstance(OutputStream out,
                                       Config config)

getConfig

public Config getConfig()

endIni

public void endIni()
Specified by:
endIni in interface IniHandler

endSection

public void endSection()
Specified by:
endSection in interface IniHandler

handleOption

public void handleOption(String optionName,
                         String optionValue)
Specified by:
handleOption in interface OptionHandler

startIni

public void startIni()
Specified by:
startIni in interface IniHandler

startSection

public void startSection(String sectionName)
Specified by:
startSection in interface IniHandler

newInstance

protected static IniFormatter newInstance()

setConfig

protected void setConfig(Config value)

getOutput

protected PrintWriter getOutput()

setOutput

protected void setOutput(PrintWriter value)

escape

protected String escape(String input)

[ini4j]