|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.xml.JRXmlBaseWriter
net.sf.jasperreports.engine.xml.JRXmlTemplateWriter
public class JRXmlTemplateWriter
Template
XML serializer.
JRXmlTemplateLoader
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ENCODING
Default XML output encoding. |
Fields inherited from class net.sf.jasperreports.engine.xml.JRXmlBaseWriter |
---|
writer |
Constructor Summary | |
---|---|
JRXmlTemplateWriter(JRTemplate template,
java.io.Writer out,
java.lang.String encoding)
Creates an XML template writer. |
Method Summary | |
---|---|
protected boolean |
toWriteConditionalStyles()
Decides whether conditional styles are to be written. |
void |
write()
Writes the template to the output writer. |
protected void |
writeIncludedTemplate(JRTemplateReference reference)
|
protected void |
writeIncludedTemplates()
|
protected void |
writeStyles()
|
static java.lang.String |
writeTemplate(JRTemplate template)
Returns the XML representation of a template. |
static void |
writeTemplate(JRTemplate template,
java.io.OutputStream out)
Writes the XML representation of a template to an output stream. |
static void |
writeTemplate(JRTemplate template,
java.io.OutputStream out,
java.lang.String encoding)
Writes the XML representation of a template to an output stream. |
static java.lang.String |
writeTemplate(JRTemplate template,
java.lang.String encoding)
Returns the XML representation of a template. |
protected static void |
writeTemplate(JRTemplate template,
java.io.Writer out,
java.lang.String encoding)
|
static void |
writeTemplateToFile(JRTemplate template,
java.lang.String outputFile)
Writes the XML representation of a template to a file. |
static void |
writeTemplateToFile(JRTemplate template,
java.lang.String outputFile,
java.lang.String encoding)
Writes the XML representation of a template to a file. |
Methods inherited from class net.sf.jasperreports.engine.xml.JRXmlBaseWriter |
---|
useWriter, writeBox, writeBox, writeConditionalStyle, writeParagraph, writeParagraph, writePen, writeStyle, writeStyleReferenceAttr, writeTabStop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_ENCODING
Constructor Detail |
---|
public JRXmlTemplateWriter(JRTemplate template, java.io.Writer out, java.lang.String encoding)
template
- the template to writeout
- the ouput writerencoding
- the XML encoding to useMethod Detail |
---|
public static java.lang.String writeTemplate(JRTemplate template)
the default encoding
.
template
- the template
public static java.lang.String writeTemplate(JRTemplate template, java.lang.String encoding)
template
- the templateencoding
- the XML encoding to use
public static void writeTemplate(JRTemplate template, java.io.OutputStream out)
the default encoding
.
template
- the templateout
- the output streampublic static void writeTemplate(JRTemplate template, java.io.OutputStream out, java.lang.String encoding)
template
- the templateout
- the output streamencoding
- the XML encoding to usepublic static void writeTemplateToFile(JRTemplate template, java.lang.String outputFile)
the default encoding
.
template
- the templateoutputFile
- the output file namepublic static void writeTemplateToFile(JRTemplate template, java.lang.String outputFile, java.lang.String encoding)
template
- the templateoutputFile
- the output file nameencoding
- the XML encoding to useprotected static void writeTemplate(JRTemplate template, java.io.Writer out, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public void write() throws java.io.IOException
java.io.IOException
protected void writeIncludedTemplates() throws java.io.IOException
java.io.IOException
protected void writeIncludedTemplate(JRTemplateReference reference) throws java.io.IOException
java.io.IOException
protected void writeStyles() throws java.io.IOException
java.io.IOException
protected boolean toWriteConditionalStyles()
JRXmlBaseWriter
toWriteConditionalStyles
in class JRXmlBaseWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |