org.apache.maven.doxia.module.xhtml
Class XhtmlSink

java.lang.Object
  extended by org.apache.maven.doxia.sink.SinkAdapter
      extended by org.apache.maven.doxia.sink.AbstractXmlSink
          extended by org.apache.maven.doxia.module.xhtml.XhtmlSink
All Implemented Interfaces:
Markup, XmlMarkup, XhtmlMarkup, Sink
Direct Known Subclasses:
XhtmlBookSink

public class XhtmlSink
extends AbstractXmlSink
implements XhtmlMarkup

Xhtml sink implementation.

Since:
1.0
Version:
$Id: XhtmlSink.java 599638 2007-11-29 23:54:47Z hboutemy $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from interface org.apache.maven.doxia.module.xhtml.XhtmlMarkup
TBODY_TAG
 
Fields inherited from interface org.apache.maven.doxia.markup.XmlMarkup
BANG, CDATA
 
Fields inherited from interface org.apache.maven.doxia.markup.Markup
EOL, EQUAL, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LESS_THAN, MINUS, PLUS, QUOTE, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SLASH, SPACE, STAR
 
Fields inherited from interface org.apache.maven.doxia.sink.Sink
NUMBERING_DECIMAL, NUMBERING_LOWER_ALPHA, NUMBERING_LOWER_ROMAN, NUMBERING_UPPER_ALPHA, NUMBERING_UPPER_ROMAN, ROLE, SECTION_LEVEL_1, SECTION_LEVEL_2, SECTION_LEVEL_3, SECTION_LEVEL_4, SECTION_LEVEL_5
 
Constructor Summary
XhtmlSink(Writer writer)
           
XhtmlSink(Writer writer, RenderingContext renderingContext)
           
XhtmlSink(Writer writer, RenderingContext renderingContext, Map directives)
           
 
Method Summary
 void anchor_()
          Ending an anchor element.
 void anchor(String name)
          Starting an element which defines an anchor.
 void author_()
          Ending the author element.
 void body_()
          Ending the body element.
 void body()
          Starting the body of a document which contains the document's content.
 void bold_()
          Ending a bold element.
 void bold()
          Starting a bold element.
 void close()
          Close the writer or the stream, if needed.
protected  void content(String text)
           
 void date_()
          Ending the date element.
 void definedTerm_()
          Starting a definition term element within a definition list.
 void definedTerm()
          Starting a definition term element within a definition list.
 void definition_()
          Ending a definition element within a definition list.
 void definition()
          Starting a definition element within a definition list.
 void definitionList_()
          Ending a definition list element.
 void definitionList()
          Starting a definition list element.
static String encodeFragment(String text)
           
static String encodeURL(String text)
          Forward to HtmlTools.encodeURL( text ).
static String escapeHTML(String text)
          Forward to HtmlTools.escapeHTML( text ).
 void figure_()
          Ending a basic image embedding element.
 void figure()
          Starting a basic image embedding element.
 void figureCaption_()
          Ending a caption of an image.
 void figureCaption()
          Starting a caption of an image element.
 void figureGraphics(String name)
          Adding a source of a graphic.
 void flush()
          Flush the writer or the stream, if needed.
protected  StringBuffer getBuffer()
           
 RenderingContext getRenderingContext()
           
 void head_()
          Ending the head element.
 void head()
          Starting the head element which contains information about the current document, such as its title, that is not considered document content.
 void horizontalRule()
          Adding a separator of sections from a text to each other.
 void italic_()
          Ending an italic element.
 void italic()
          Starting an italic element.
 void lineBreak()
          Adding a line breaks.
 void link_()
          Ending a link element.
 void link(String name)
          Starting an element which defines a link.
 void link(String name, String target)
          The default style class for external link is externalLink.
 void list_()
          Ending an unordered list element.
 void list()
          Starting an unordered list element.
 void listItem_()
          Ending a list item element within an unordered list.
 void listItem()
          Starting a list item element within an unordered list.
 void monospaced_()
          Ending a monospaced element.
 void monospaced()
          Starting a monospaced element.
 void nonBreakingSpace()
          Adding a non breaking space, ie a space without any special formatting operations.
 void numberedList_()
          Ending an ordered list element.
 void numberedList(int numbering)
          Starting an ordered list element.
 void numberedListItem_()
          Ending a list item element within an ordered list.
 void numberedListItem()
          Starting a list item element within an ordered list.
 void paragraph_()
          Ending a paragraph element.
 void paragraph()
          Starting an element which represents a paragraph.
 void rawText(String text)
          Adding a raw text, ie a text without any special formatting operations.
protected  void resetBuffer()
          Reset the buffer.
protected  void resetState()
          Reset all the Sink state.
 void section1_()
          Ending a first heading element.
 void section1()
          The default class style is section.
 void section2_()
          Ending a second heading element.
 void section2()
          The default class style is section.
 void section3_()
          Ending a third heading element.
 void section3()
          The default class style is section.
 void section4_()
          Ending a 4th heading element.
 void section4()
          The default class style is section.
 void section5_()
          Ending a 5th heading element.
 void section5()
          The default class style is section.
 void sectionTitle1_()
          Ending a first title heading element.
 void sectionTitle1()
          Starting a first title heading element.
 void sectionTitle2_()
          Ending a second title heading element.
 void sectionTitle2()
          Starting a second title heading element.
 void sectionTitle3_()
          Ending a third title heading element.
 void sectionTitle3()
          Starting a third title heading element.
 void sectionTitle4_()
          Ending a 4th title heading element.
 void sectionTitle4()
          Starting a 4th title heading element.
 void sectionTitle5_()
          Ending a 5th title heading element.
 void sectionTitle5()
          Starting a 5th title heading element.
protected  void setHeadFlag(boolean headFlag)
           
 void table_()
          Ending a table element.
 void table()
          The default class style is bodyTable.
 void tableCaption_()
          Ending a caption element of a table.
 void tableCaption()
          Starting a caption element of a table.
 void tableCell_()
          Ending a cell element.
 void tableCell_(boolean headerRow)
           
 void tableCell()
          Starting a cell element which defines a cell that contains data.
 void tableCell(boolean headerRow)
           
 void tableCell(boolean headerRow, String width)
           
 void tableCell(String width)
          Starting a cell element which defines a cell that contains data.
 void tableHeaderCell_()
          Ending a cell header element.
 void tableHeaderCell()
          Starting a cell element which defines a cell that contains header information.
 void tableHeaderCell(String width)
          Starting a cell element which defines a cell that contains header information.
 void tableRow_()
          Ending a row element.
 void tableRow()
          The default class style is a or b depending the row id.
 void tableRows_()
          Ending an element contains rows of table data.
 void tableRows(int[] justification, boolean grid)
          Starting an element contains rows of table data.
 void text(String text)
          Adding a text.
 void title_()
          Ending the title element.
 void title()
          Starting the title element which is used to identify the document.
 void verbatim_()
          Ending a verbatim element.
 void verbatim(boolean boxed)
          The default class style is source.
protected  void verbatimContent(String text)
           
protected  void write(String text)
          TODO DOXIA-59 Need to uniform writing
 
Methods inherited from class org.apache.maven.doxia.sink.AbstractXmlSink
writeEndTag, writeEndTagWithoutEOL, writeSimpleTag, writeSimpleTag, writeStartTag, writeStartTag, writeStartTag
 
Methods inherited from class org.apache.maven.doxia.sink.SinkAdapter
author, date, definitionListItem_, definitionListItem, pageBreak, sectionTitle_, sectionTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XhtmlSink

public XhtmlSink(Writer writer)
Parameters:
writer -

XhtmlSink

public XhtmlSink(Writer writer,
                 RenderingContext renderingContext)
Parameters:
writer -
renderingContext -

XhtmlSink

public XhtmlSink(Writer writer,
                 RenderingContext renderingContext,
                 Map directives)
Parameters:
writer -
renderingContext -
directives -
Method Detail

getBuffer

protected StringBuffer getBuffer()
Returns:
the current buffer

setHeadFlag

protected void setHeadFlag(boolean headFlag)
Parameters:
headFlag - an header flag

resetState

protected void resetState()
Reset all the Sink state.


resetBuffer

protected void resetBuffer()
Reset the buffer.


head

public void head()
Starting the head element which contains information about the current document, such as its title, that is not considered document content.

Specified by:
head in interface Sink
Overrides:
head in class SinkAdapter

head_

public void head_()
Ending the head element.

Specified by:
head_ in interface Sink
Overrides:
head_ in class SinkAdapter

title

public void title()
Starting the title element which is used to identify the document.

Specified by:
title in interface Sink
Overrides:
title in class SinkAdapter
See Also:
HTML.Tag.TITLE

title_

public void title_()
Ending the title element.

Specified by:
title_ in interface Sink
Overrides:
title_ in class SinkAdapter
See Also:
HTML.Tag.TITLE

author_

public void author_()
Ending the author element.

Specified by:
author_ in interface Sink
Overrides:
author_ in class SinkAdapter
See Also:
HTML.Tag.META

date_

public void date_()
Ending the date element.

Specified by:
date_ in interface Sink
Overrides:
date_ in class SinkAdapter
See Also:
HTML.Tag.META

body

public void body()
Starting the body of a document which contains the document's content.

Specified by:
body in interface Sink
Overrides:
body in class SinkAdapter

body_

public void body_()
Ending the body element.

Specified by:
body_ in interface Sink
Overrides:
body_ in class SinkAdapter

section1

public void section1()
The default class style is section. Starting a first heading element which contains the topic of the section.

Specified by:
section1 in interface Sink
Overrides:
section1 in class SinkAdapter
See Also:
HTML.Tag.DIV

section2

public void section2()
The default class style is section. Starting a second heading element which contains the topic of the section.

Specified by:
section2 in interface Sink
Overrides:
section2 in class SinkAdapter
See Also:
HTML.Tag.DIV

section3

public void section3()
The default class style is section. Starting a third heading element which contains the topic of the section.

Specified by:
section3 in interface Sink
Overrides:
section3 in class SinkAdapter
See Also:
HTML.Tag.DIV

section4

public void section4()
The default class style is section. Starting a 4th heading element which contains the topic of the section.

Specified by:
section4 in interface Sink
Overrides:
section4 in class SinkAdapter
See Also:
HTML.Tag.DIV

section5

public void section5()
The default class style is section. Starting a 5th heading element which contains the topic of the section.

Specified by:
section5 in interface Sink
Overrides:
section5 in class SinkAdapter
See Also:
HTML.Tag.DIV

section1_

public void section1_()
Ending a first heading element.

Specified by:
section1_ in interface Sink
Overrides:
section1_ in class SinkAdapter
See Also:
HTML.Tag.DIV

section2_

public void section2_()
Ending a second heading element.

Specified by:
section2_ in interface Sink
Overrides:
section2_ in class SinkAdapter
See Also:
HTML.Tag.DIV

section3_

public void section3_()
Ending a third heading element.

Specified by:
section3_ in interface Sink
Overrides:
section3_ in class SinkAdapter
See Also:
HTML.Tag.DIV

section4_

public void section4_()
Ending a 4th heading element.

Specified by:
section4_ in interface Sink
Overrides:
section4_ in class SinkAdapter
See Also:
HTML.Tag.DIV

section5_

public void section5_()
Ending a 5th heading element.

Specified by:
section5_ in interface Sink
Overrides:
section5_ in class SinkAdapter
See Also:
HTML.Tag.DIV

sectionTitle1

public void sectionTitle1()
Starting a first title heading element.

Specified by:
sectionTitle1 in interface Sink
Overrides:
sectionTitle1 in class SinkAdapter
See Also:
HTML.Tag.H2

sectionTitle1_

public void sectionTitle1_()
Ending a first title heading element.

Specified by:
sectionTitle1_ in interface Sink
Overrides:
sectionTitle1_ in class SinkAdapter
See Also:
HTML.Tag.H2

sectionTitle2

public void sectionTitle2()
Starting a second title heading element.

Specified by:
sectionTitle2 in interface Sink
Overrides:
sectionTitle2 in class SinkAdapter
See Also:
HTML.Tag.H3

sectionTitle2_

public void sectionTitle2_()
Ending a second title heading element.

Specified by:
sectionTitle2_ in interface Sink
Overrides:
sectionTitle2_ in class SinkAdapter
See Also:
HTML.Tag.H3

sectionTitle3

public void sectionTitle3()
Starting a third title heading element.

Specified by:
sectionTitle3 in interface Sink
Overrides:
sectionTitle3 in class SinkAdapter
See Also:
HTML.Tag.H4

sectionTitle3_

public void sectionTitle3_()
Ending a third title heading element.

Specified by:
sectionTitle3_ in interface Sink
Overrides:
sectionTitle3_ in class SinkAdapter
See Also:
HTML.Tag.H4

sectionTitle4

public void sectionTitle4()
Starting a 4th title heading element.

Specified by:
sectionTitle4 in interface Sink
Overrides:
sectionTitle4 in class SinkAdapter
See Also:
HTML.Tag.H5

sectionTitle4_

public void sectionTitle4_()
Ending a 4th title heading element.

Specified by:
sectionTitle4_ in interface Sink
Overrides:
sectionTitle4_ in class SinkAdapter
See Also:
HTML.Tag.H5

sectionTitle5

public void sectionTitle5()
Starting a 5th title heading element.

Specified by:
sectionTitle5 in interface Sink
Overrides:
sectionTitle5 in class SinkAdapter
See Also:
HTML.Tag.H6

sectionTitle5_

public void sectionTitle5_()
Ending a 5th title heading element.

Specified by:
sectionTitle5_ in interface Sink
Overrides:
sectionTitle5_ in class SinkAdapter
See Also:
HTML.Tag.H6

list

public void list()
Starting an unordered list element.

Specified by:
list in interface Sink
Overrides:
list in class SinkAdapter
See Also:
HTML.Tag.UL

list_

public void list_()
Ending an unordered list element.

Specified by:
list_ in interface Sink
Overrides:
list_ in class SinkAdapter
See Also:
HTML.Tag.UL

listItem

public void listItem()
Starting a list item element within an unordered list.

Specified by:
listItem in interface Sink
Overrides:
listItem in class SinkAdapter
See Also:
HTML.Tag.LI

listItem_

public void listItem_()
Ending a list item element within an unordered list.

Specified by:
listItem_ in interface Sink
Overrides:
listItem_ in class SinkAdapter
See Also:
HTML.Tag.LI

numberedList

public void numberedList(int numbering)
Starting an ordered list element.

Specified by:
numberedList in interface Sink
Overrides:
numberedList in class SinkAdapter
Parameters:
numbering - the numbering wanted
See Also:
HTML.Tag.OL

numberedList_

public void numberedList_()
Ending an ordered list element.

Specified by:
numberedList_ in interface Sink
Overrides:
numberedList_ in class SinkAdapter
See Also:
HTML.Tag.OL

numberedListItem

public void numberedListItem()
Starting a list item element within an ordered list.

Specified by:
numberedListItem in interface Sink
Overrides:
numberedListItem in class SinkAdapter
See Also:
HTML.Tag.LI

numberedListItem_

public void numberedListItem_()
Ending a list item element within an ordered list.

Specified by:
numberedListItem_ in interface Sink
Overrides:
numberedListItem_ in class SinkAdapter
See Also:
HTML.Tag.LI

definitionList

public void definitionList()
Starting a definition list element.

Specified by:
definitionList in interface Sink
Overrides:
definitionList in class SinkAdapter
See Also:
HTML.Tag.DL

definitionList_

public void definitionList_()
Ending a definition list element.

Specified by:
definitionList_ in interface Sink
Overrides:
definitionList_ in class SinkAdapter
See Also:
HTML.Tag.DL

definedTerm

public void definedTerm()
Starting a definition term element within a definition list.

Specified by:
definedTerm in interface Sink
Overrides:
definedTerm in class SinkAdapter
See Also:
HTML.Tag.DT

definedTerm_

public void definedTerm_()
Starting a definition term element within a definition list.

Specified by:
definedTerm_ in interface Sink
Overrides:
definedTerm_ in class SinkAdapter
See Also:
HTML.Tag.DT

definition

public void definition()
Starting a definition element within a definition list.

Specified by:
definition in interface Sink
Overrides:
definition in class SinkAdapter
See Also:
HTML.Tag.DD

definition_

public void definition_()
Ending a definition element within a definition list.

Specified by:
definition_ in interface Sink
Overrides:
definition_ in class SinkAdapter
See Also:
HTML.Tag.DD

paragraph

public void paragraph()
Starting an element which represents a paragraph.

Specified by:
paragraph in interface Sink
Overrides:
paragraph in class SinkAdapter
See Also:
HTML.Tag.P

paragraph_

public void paragraph_()
Ending a paragraph element.

Specified by:
paragraph_ in interface Sink
Overrides:
paragraph_ in class SinkAdapter
See Also:
HTML.Tag.P

verbatim

public void verbatim(boolean boxed)
The default class style is source. Starting an element which indicates that whitespace in the enclosed text has semantic relevance.

Specified by:
verbatim in interface Sink
Overrides:
verbatim in class SinkAdapter
Parameters:
boxed - true to add a box, false otherwise
See Also:
HTML.Tag.DIV, HTML.Tag.PRE

verbatim_

public void verbatim_()
Ending a verbatim element.

Specified by:
verbatim_ in interface Sink
Overrides:
verbatim_ in class SinkAdapter
See Also:
HTML.Tag.DIV, HTML.Tag.PRE

horizontalRule

public void horizontalRule()
Adding a separator of sections from a text to each other.

Specified by:
horizontalRule in interface Sink
Overrides:
horizontalRule in class SinkAdapter
See Also:
HTML.Tag.HR

table

public void table()
The default class style is bodyTable. Starting a table element for marking up tabular information in a document.

Specified by:
table in interface Sink
Overrides:
table in class SinkAdapter
See Also:
HTML.Tag.TABLE

table_

public void table_()
Ending a table element.

Specified by:
table_ in interface Sink
Overrides:
table_ in class SinkAdapter
See Also:
HTML.Tag.TABLE

tableRows

public void tableRows(int[] justification,
                      boolean grid)
Starting an element contains rows of table data.

Specified by:
tableRows in interface Sink
Overrides:
tableRows in class SinkAdapter
Parameters:
justification - the justification wanted
grid - true to provide a grid, false otherwise
See Also:
XhtmlMarkup.TBODY_TAG

tableRows_

public void tableRows_()
Ending an element contains rows of table data.

Specified by:
tableRows_ in interface Sink
Overrides:
tableRows_ in class SinkAdapter
See Also:
XhtmlMarkup.TBODY_TAG

tableRow

public void tableRow()
The default class style is a or b depending the row id. Starting a row element which acts as a container for a row of table cells.

Specified by:
tableRow in interface Sink
Overrides:
tableRow in class SinkAdapter
See Also:
HTML.Tag.TR

tableRow_

public void tableRow_()
Ending a row element.

Specified by:
tableRow_ in interface Sink
Overrides:
tableRow_ in class SinkAdapter
See Also:
HTML.Tag.TR

tableCell

public void tableCell()
Starting a cell element which defines a cell that contains data.

Specified by:
tableCell in interface Sink
Overrides:
tableCell in class SinkAdapter

tableHeaderCell

public void tableHeaderCell()
Starting a cell element which defines a cell that contains header information.

Specified by:
tableHeaderCell in interface Sink
Overrides:
tableHeaderCell in class SinkAdapter

tableCell

public void tableCell(boolean headerRow)
Parameters:
headerRow - true if it is an header row
See Also:
HTML.Tag.TH, HTML.Tag.TD

tableCell

public void tableCell(String width)
Starting a cell element which defines a cell that contains data.

Specified by:
tableCell in interface Sink
Overrides:
tableCell in class SinkAdapter
Parameters:
width - the size of the cell

tableHeaderCell

public void tableHeaderCell(String width)
Starting a cell element which defines a cell that contains header information.

Specified by:
tableHeaderCell in interface Sink
Overrides:
tableHeaderCell in class SinkAdapter
Parameters:
width - the size of the header cell

tableCell

public void tableCell(boolean headerRow,
                      String width)
Parameters:
headerRow - true if it is an header row
width - the cell size
See Also:
HTML.Tag.TH, HTML.Tag.TD

tableCell_

public void tableCell_()
Ending a cell element.

Specified by:
tableCell_ in interface Sink
Overrides:
tableCell_ in class SinkAdapter

tableHeaderCell_

public void tableHeaderCell_()
Ending a cell header element.

Specified by:
tableHeaderCell_ in interface Sink
Overrides:
tableHeaderCell_ in class SinkAdapter

tableCell_

public void tableCell_(boolean headerRow)
Parameters:
headerRow - true if it is an header row
See Also:
HTML.Tag.TH, HTML.Tag.TD

tableCaption

public void tableCaption()
Starting a caption element of a table.

Specified by:
tableCaption in interface Sink
Overrides:
tableCaption in class SinkAdapter
See Also:
HTML.Tag.CAPTION

tableCaption_

public void tableCaption_()
Ending a caption element of a table.

Specified by:
tableCaption_ in interface Sink
Overrides:
tableCaption_ in class SinkAdapter
See Also:
HTML.Tag.CAPTION

figure

public void figure()
Starting a basic image embedding element.

Specified by:
figure in interface Sink
Overrides:
figure in class SinkAdapter
See Also:
HTML.Tag.IMG

figure_

public void figure_()
Ending a basic image embedding element.

Specified by:
figure_ in interface Sink
Overrides:
figure_ in class SinkAdapter

figureCaption

public void figureCaption()
Starting a caption of an image element.

Specified by:
figureCaption in interface Sink
Overrides:
figureCaption in class SinkAdapter

figureCaption_

public void figureCaption_()
Ending a caption of an image.

Specified by:
figureCaption_ in interface Sink
Overrides:
figureCaption_ in class SinkAdapter

figureGraphics

public void figureGraphics(String name)
Adding a source of a graphic.

Specified by:
figureGraphics in interface Sink
Overrides:
figureGraphics in class SinkAdapter
Parameters:
name - the source

anchor

public void anchor(String name)
Starting an element which defines an anchor.

Specified by:
anchor in interface Sink
Overrides:
anchor in class SinkAdapter
Parameters:
name - the name of the anchor
See Also:
HTML.Tag.A

anchor_

public void anchor_()
Ending an anchor element.

Specified by:
anchor_ in interface Sink
Overrides:
anchor_ in class SinkAdapter
See Also:
HTML.Tag.A

link

public void link(String name)
Starting an element which defines a link.

Specified by:
link in interface Sink
Overrides:
link in class SinkAdapter
Parameters:
name - the name of the link

link

public void link(String name,
                 String target)
The default style class for external link is externalLink.

Parameters:
name -
target -
See Also:
HTML.Tag.A

link_

public void link_()
Ending a link element.

Specified by:
link_ in interface Sink
Overrides:
link_ in class SinkAdapter
See Also:
HTML.Tag.A

italic

public void italic()
Starting an italic element.

Specified by:
italic in interface Sink
Overrides:
italic in class SinkAdapter
See Also:
HTML.Tag.I

italic_

public void italic_()
Ending an italic element.

Specified by:
italic_ in interface Sink
Overrides:
italic_ in class SinkAdapter
See Also:
HTML.Tag.I

bold

public void bold()
Starting a bold element.

Specified by:
bold in interface Sink
Overrides:
bold in class SinkAdapter
See Also:
HTML.Tag.B

bold_

public void bold_()
Ending a bold element.

Specified by:
bold_ in interface Sink
Overrides:
bold_ in class SinkAdapter
See Also:
HTML.Tag.B

monospaced

public void monospaced()
Starting a monospaced element.

Specified by:
monospaced in interface Sink
Overrides:
monospaced in class SinkAdapter
See Also:
HTML.Tag.TT

monospaced_

public void monospaced_()
Ending a monospaced element.

Specified by:
monospaced_ in interface Sink
Overrides:
monospaced_ in class SinkAdapter
See Also:
HTML.Tag.TT

lineBreak

public void lineBreak()
Adding a line breaks.

Specified by:
lineBreak in interface Sink
Overrides:
lineBreak in class SinkAdapter
See Also:
HTML.Tag.BR

nonBreakingSpace

public void nonBreakingSpace()
Adding a non breaking space, ie a space without any special formatting operations.

Specified by:
nonBreakingSpace in interface Sink
Overrides:
nonBreakingSpace in class SinkAdapter

text

public void text(String text)
Adding a text.

Specified by:
text in interface Sink
Overrides:
text in class SinkAdapter
Parameters:
text - The text to write.

rawText

public void rawText(String text)
Adding a raw text, ie a text without any special formatting operations.

Specified by:
rawText in interface Sink
Overrides:
rawText in class SinkAdapter
Parameters:
text - The text to write.

flush

public void flush()
Flush the writer or the stream, if needed.

Specified by:
flush in interface Sink
Overrides:
flush in class SinkAdapter

close

public void close()
Close the writer or the stream, if needed.

Specified by:
close in interface Sink
Overrides:
close in class SinkAdapter

write

protected void write(String text)
TODO DOXIA-59 Need to uniform writing

Specified by:
write in class AbstractXmlSink
Parameters:
text - the given text to write

content

protected void content(String text)

verbatimContent

protected void verbatimContent(String text)

escapeHTML

public static String escapeHTML(String text)
Forward to HtmlTools.escapeHTML( text ).

Parameters:
text - the String to escape, may be null
Returns:
the text escaped, "" if null String input
See Also:
HtmlTools.escapeHTML(String)

encodeFragment

public static String encodeFragment(String text)
Parameters:
text -
Returns:
a fragment encoded
See Also:
encodeURL(String)

encodeURL

public static String encodeURL(String text)
Forward to HtmlTools.encodeURL( text ).

Parameters:
text - the String to encode, may be null.
Returns:
the text encoded, null if null String input.
See Also:
HtmlTools.encodeURL(String)

getRenderingContext

public RenderingContext getRenderingContext()
Returns:
the current rendering context


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.