|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dtools.ini.IniFileWriter
public class IniFileWriter
The IniFileWriter class is a simple class which allows the user to write an IniFile object to the hard disk. One of the class' greatest advantage is that it removes the complexity of writing files from the user.
Field Summary | |
---|---|
static String |
ENCODING
The text encoding for writing String to files. |
Constructor Summary | |
---|---|
IniFileWriter(IniFile ini,
File file)
Creates a new IniFileWriter thread instance. |
Method Summary | |
---|---|
void |
setIncludeSpaces(boolean value)
This method sets whether a space character should be placed before and after the equals character in an item. |
void |
setItemLineSeparator(boolean value)
This method sets whether an empty line should be included before and after an item has occurred in the file. |
void |
setSectionLineSeparator(boolean value)
This method sets whether an empty line should be included before and after a section has occurred in the file. |
void |
write()
This method actually writes the IniFile to the File
object (both of which are given in the constructor). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENCODING
Constructor Detail |
---|
public IniFileWriter(IniFile ini, File file)
ini
- The IniFile to write.file
- The File where to write the IniFile to.Method Detail |
---|
public void setIncludeSpaces(boolean value)
value
- If true, a space character is placed before and after the
equals character.public void setItemLineSeparator(boolean value)
value
- If true, an empty line will be included before and after an
item.public void setSectionLineSeparator(boolean value)
value
- If true, an empty line will be included before and after a
section.public void write() throws IOException
This method actually writes the IniFile
to the File
object (both of which are given in the constructor).
IOException
- If an I\O exception occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |