public class DefaultFormatter extends java.lang.Object implements FormatterIF
ImplementationIF
Constructor and Description |
---|
DefaultFormatter(XSDContextIF ctx,
int maxRows)
Create the object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the formatter.
|
java.util.Iterator<java.lang.String> |
format(ResultIF result)
Get the formatted string of the given result set structure.
|
java.lang.String |
getTerminator()
Get the terminator string.
|
public DefaultFormatter(XSDContextIF ctx, int maxRows)
ctx
- the context.maxRows
- the maximum number of rows to be formatted.
if 0 the formatter will format all rows.public void close()
close
in interface FormatterIF
public java.util.Iterator<java.lang.String> format(ResultIF result)
format
in interface FormatterIF
result
- the query result.public java.lang.String getTerminator()
getTerminator
in interface FormatterIF