public abstract class AbstractWriter extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractWriter(String xmlTag,
String kvnTag)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterSection(Generator generator)
Enter the section.
|
void |
exitSection(Generator generator)
Exit the section.
|
protected String |
intArrayToString(int[] integers)
Convert an array of integer to a comma-separated list.
|
void |
write(Generator generator)
Write the section, including surrounding tags.
|
protected abstract void |
writeContent(Generator generator)
Write the content of the section, excluding surrounding tags.
|
public void write(Generator generator) throws IOException
generator - generator to use for producing outputIOException - if any buffer writing operations failspublic void enterSection(Generator generator) throws IOException
generator - generator to use for producing outputIOException - if an I/O error occurs.public void exitSection(Generator generator) throws IOException
generator - generator to use for producing outputIOException - if an I/O error occurs.protected abstract void writeContent(Generator generator) throws IOException
generator - generator to use for producing outputIOException - if any buffer writing operations failsprotected String intArrayToString(int[] integers)
integers - integers to writeCopyright © 2002-2023 CS GROUP. All rights reserved.