|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler
com.bigllc.retsiq.simpleclient.DelimitedSearchResponseHandler
public class DelimitedSearchResponseHandler
Search handler that outputs search records in a delimited format. The
default delimiter is a comma.
If a value or column header contains the supplied delimiter it will be
wrapped with quotes. Any quotes within a quoted field is escaped with a quote.
| Field Summary |
|---|
| Fields inherited from class com.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler |
|---|
columnNameIndex, columns, currentRow, hasMoreRecords, path, query, recordCount, recordsInResponse, responseDelimiter, responseDelimiterHex, select, session |
| Constructor Summary | |
|---|---|
DelimitedSearchResponseHandler(java.io.OutputStream out)
Create a comma delimited search response output handler. |
|
DelimitedSearchResponseHandler(java.io.OutputStream out,
boolean headers)
Create a comma delimited search response output handler. |
|
DelimitedSearchResponseHandler(java.io.OutputStream out,
java.lang.String delimiter)
Create a delimited search response output handler. |
|
DelimitedSearchResponseHandler(java.io.OutputStream out,
java.lang.String delimiter,
boolean headers)
Create a delimited search response output handler. |
|
| Method Summary | |
|---|---|
void |
columnsChild(java.util.List<java.lang.String> columns)
Override this method if derived handler wants to receive notification of columns(). |
void |
dataChild(SearchRecord record)
Override this method if derived handler wants to receive notification of data(). |
void |
done()
Flushes the output stream. |
| Methods inherited from class com.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler |
|---|
columns, count, countChild, data, delimiter, delimiterChild, getColumns, getHasMoreRecords, getPath, getQuery, getRecordCount, getRecordsInResponse, getResponseDelimiter, getResponseDelimiterHex, getSelect, getSession, hasMoreData, hasMoreDataChild, noRecordsFound, noRecordsFoundChild, responseCode, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelimitedSearchResponseHandler(java.io.OutputStream out)
out - The output stream that delimited results should be sent to.
public DelimitedSearchResponseHandler(java.io.OutputStream out,
boolean headers)
out - The output stream that delimited results should be sent to.headers - Should a header row be printed out.
public DelimitedSearchResponseHandler(java.io.OutputStream out,
java.lang.String delimiter)
out - The output stream that delimited results should be sent to.delimiter - The delimiter to use.
public DelimitedSearchResponseHandler(java.io.OutputStream out,
java.lang.String delimiter,
boolean headers)
out - The output stream that delimited results should be sent to.delimiter - The delimiter to use.| Method Detail |
|---|
public void columnsChild(java.util.List<java.lang.String> columns)
throws RETSClientException
AbstractSearchResponseHandler
columnsChild in class AbstractSearchResponseHandlerRETSClientExceptionAbstractSearchResponseHandler.columnsChild(List)
public void dataChild(SearchRecord record)
throws RETSClientException
AbstractSearchResponseHandler
dataChild in class AbstractSearchResponseHandlerRETSClientExceptionAbstractSearchResponseHandler.dataChild(SearchRecord)public void done()
done in interface SearchResponseHandlerdone in class AbstractSearchResponseHandlerSearchResponseHandler.done()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||