|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.ant.types.Input
net.sf.fikin.ant.types.XMLInput
net.sf.fikin.ant.types.XHTMLInput
public class XHTMLInput
Support input as an HTML text
Provides with ability to validate input HTML document into XHTML created on Jan 3, 2007
| Nested Class Summary | |
|---|---|
class |
XHTMLInput.TmpXHTMLData
Incorporate a temporary data in-out streams used in toXHTML conversion created on Jan 3, 2007 |
| Constructor Summary | |
|---|---|
XHTMLInput()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream(org.apache.tools.ant.Task task)
get input stream either as it is or being processed by toXHTM() |
protected XHTMLInput.TmpXHTMLData |
newXHTMLData()
factory method for creating tmp XHTML data object |
void |
setSaveXHTMLInto(java.io.File file)
save produced by toXHTML document into a file, useful for troubleshooting purposes |
void |
setToXHTML(boolean toXHTML)
perform to-XHTML transformation to the input document |
protected void |
toXHTMLNecko(java.io.BufferedReader in,
java.io.Writer out)
Perform html-to-xhtml conversion |
protected void |
writeToFile(org.apache.tools.ant.Task task,
java.io.File file,
java.lang.String str)
write given string to the file |
| Methods inherited from class net.sf.fikin.ant.types.XMLInput |
|---|
getDocument, getFactory, setFactorySettings, setNamespaceAware |
| Methods inherited from class net.sf.fikin.ant.types.Input |
|---|
addText, check, getReader, setFile, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XHTMLInput()
| Method Detail |
|---|
public void setToXHTML(boolean toXHTML)
This is backed by NeckoHTML parser and does few thinks:
by default true
toXHTML - is true if to-XHTML transformation to the input document
is to be performedpublic void setSaveXHTMLInto(java.io.File file)
file - to store XHTML document to
Meaningful only when setToXHTML(boolean) has been set to true
public java.io.InputStream getInputStream(org.apache.tools.ant.Task task)
throws org.apache.tools.ant.BuildException
getInputStream in class Inputtask - enclosing task
java.io.FileNotFoundException - because of parent
org.apache.tools.ant.BuildException - in case some internal error occured
protected void toXHTMLNecko(java.io.BufferedReader in,
java.io.Writer out)
throws org.xml.sax.SAXException,
java.io.IOException
in - out -
org.xml.sax.SAXException
java.io.IOException
protected void writeToFile(org.apache.tools.ant.Task task,
java.io.File file,
java.lang.String str)
throws java.io.IOException
task - file - str -
java.io.IOExceptionprotected XHTMLInput.TmpXHTMLData newXHTMLData()
subject to subclassing if needed to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||