|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.result.export.AbstractOutputter
org.eclipse.datatools.sqltools.result.internal.export.TextOutputter
public class TextOutputter
Outputs the result set(s) in TXT format with user-defined column delimiter and specified encoding
Constructor Summary | |
---|---|
TextOutputter()
|
Method Summary | |
---|---|
java.lang.String |
getPrintString(IResultInstance rs)
Returns the string for printing of a result instance |
java.lang.String |
getPrintString(IResultSetObject rs)
Returns the string for printing of a result set |
void |
output(IResultInstance rs,
java.util.Properties props,
java.io.OutputStream os)
|
void |
output(IResultInstance rs,
java.util.Properties props,
java.io.PrintWriter pw)
|
void |
output(IResultInstance rs,
java.util.Properties props,
java.lang.String path)
Ouputs all the result set objects in the result instance to the given file path |
void |
output(IResultSetObject resultset,
java.util.Properties options,
java.io.OutputStream stream)
|
void |
output(IResultSetObject resultset,
java.util.Properties options,
java.io.PrintWriter writer)
|
void |
output(IResultSetObject rs,
java.util.Properties props,
java.lang.String path)
Ouputs the result set object to the given file path |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextOutputter()
Method Detail |
---|
public void output(IResultSetObject resultset, java.util.Properties options, java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public void output(IResultSetObject resultset, java.util.Properties options, java.io.PrintWriter writer) throws java.io.IOException
java.io.IOException
public void output(IResultInstance rs, java.util.Properties props, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void output(IResultInstance rs, java.util.Properties props, java.io.PrintWriter pw) throws java.io.IOException
java.io.IOException
public java.lang.String getPrintString(IResultSetObject rs)
rs
- the result set object
public java.lang.String getPrintString(IResultInstance rs)
rs
- the result instance
public void output(IResultSetObject rs, java.util.Properties props, java.lang.String path) throws java.io.IOException
AbstractOutputter
output
in class AbstractOutputter
rs
- the result set objectprops
- output options, can get the encoding,delimiter type and user-defined delimiter from itpath
- the file path
java.io.IOException
- -- if i/o error occursIResultConstants.ENCODING
,
IResultConstants.DELIMITER
,
IResultConstants.USERDEFINED_DELIMITER
public void output(IResultInstance rs, java.util.Properties props, java.lang.String path) throws java.io.IOException
AbstractOutputter
output
in class AbstractOutputter
rs
- the result instanceprops
- output options, can get the encoding,delimiter type and user-defined delimiter from itpath
- the file path
java.io.IOException
- -- if i/o error occursIResultConstants.ENCODING
,
IResultConstants.DELIMITER
,
IResultConstants.USERDEFINED_DELIMITER
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |