public class ResultFormatter extends java.lang.Object implements FormatterIF
ImplementationIF| Constructor and Description |
|---|
ResultFormatter(XSDContextIF ctx,
Resultformatter resultFormatter,
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 ResultFormatter(XSDContextIF ctx, Resultformatter resultFormatter, int maxRows)
ctx - the context.resultFormatter - the message format descriptor.maxRows - the maximum number of rows to be formatted.
if 0 the formatter will format all rows.public void close()
close in interface FormatterIFpublic java.util.Iterator<java.lang.String> format(ResultIF result)
format in interface FormatterIFresult - the query result.public java.lang.String getTerminator()
getTerminator in interface FormatterIF