|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.ant.types.Output
public class Output
Implement a genuine output type
Support file or property an output
Provides with ability to specify delimiter strings if enclosing tasks do wish to store records-like data created on Jan 3, 2007
Constructor Summary | |
---|---|
Output()
|
Method Summary | |
---|---|
void |
check(org.apache.tools.ant.Task task)
test that any of the members has been set |
java.io.OutputStream |
getOutputStream(org.apache.tools.ant.Task task)
get output stream associated with this output tag |
DelimitedPrintWriter |
getPrintWriter(org.apache.tools.ant.Task task)
get output writer |
DelimitedBufferedWriter |
getWriter(org.apache.tools.ant.Task task)
get writer associated with this output tag |
void |
setAppend(boolean flg)
append to the output file |
void |
setDelimiter(java.lang.String delimiter)
set records delimiter |
void |
setFile(java.io.File in)
set output file |
void |
setProperty(java.lang.String propertyName)
set output property name |
void |
setTrim(boolean flg)
trim the resulting value before setting it to the property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Output()
Method Detail |
---|
public void setFile(java.io.File in)
in
- is output filepublic void setProperty(java.lang.String propertyName)
propertyName
- public void setDelimiter(java.lang.String delimiter)
typically tasks can use that string to separate lines of data instead of new line
delimiter
- to use
by default:
public void setAppend(boolean flg)
flg
- append to the file or property value if true,
by default it is false
public void setTrim(boolean flg)
by default true
has no meaning for file
flg
- trim if set to truepublic void check(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException
check
in interface Type
task
- is enclosing ant task
org.apache.tools.ant.BuildException
public DelimitedBufferedWriter getWriter(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException
task
- is enclosing task
org.apache.tools.ant.BuildException
public java.io.OutputStream getOutputStream(org.apache.tools.ant.Task task)
task
- is enclosing task
public DelimitedPrintWriter getPrintWriter(org.apache.tools.ant.Task task)
task
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |