out.flush();
savedOut = out;
tableRowsWriter = new StringWriter();
out = new PrintWriter( tableRowsWriter );
MutableAttributeSet att = new SimpleAttributeSet();
att.addAttribute( SimplifiedDocbookMarkup.COLS_ATTRIBUTE, String.valueOf( justification.length ) );
writeStartTag( SimplifiedDocbookMarkup.TGROUP_TAG, att );
for ( int i = 0; i < justification.length; ++i )
{
String justif;
switch ( justification[i] )
{
case Sink.JUSTIFY_LEFT:
justif = "left";
break;
case Sink.JUSTIFY_RIGHT:
justif = "right";
break;
case Sink.JUSTIFY_CENTER:
default:
justif = "center";
break;
}
att = new SimpleAttributeSet();
att.addAttribute( "align", justif );
writeSimpleTag( SimplifiedDocbookMarkup.COLSPEC_TAG, att );
}
writeStartTag( SimplifiedDocbookMarkup.TBODY_TAG );