org.ini4j.spi
Class IniFormatter

java.lang.Object
  extended by org.ini4j.spi.IniFormatter
All Implemented Interfaces:
IniHandler, OptionHandler
Direct Known Subclasses:
FancyIniFormatter

public class IniFormatter
extends java.lang.Object
implements IniHandler


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

Constructor Detail

IniFormatter

public IniFormatter()
Method Detail

newInstance

public static IniFormatter newInstance(java.io.Writer out)

newInstance

public static IniFormatter newInstance(java.io.OutputStream out)

newInstance

public static IniFormatter newInstance(java.io.Writer out,
                                       Config config)

newInstance

public static IniFormatter newInstance(java.io.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(java.lang.String optionName,
                         java.lang.String optionValue)
Specified by:
handleOption in interface OptionHandler

startIni

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

startSection

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

newInstance

protected static IniFormatter newInstance()

setConfig

protected void setConfig(Config value)

getOutput

protected java.io.PrintWriter getOutput()

setOutput

protected void setOutput(java.io.PrintWriter value)

escape

protected java.lang.String escape(java.lang.String input)


Copyright © 2011. All Rights Reserved.