/** * Called to print a line consisting of the text accumulated so * far. This is equivalent to calling {@link #printSpace} but * forcing the line to print and starting a new line ({@link * #printSpace} will only start a new line if the current line * is long enough). */ public void breakLine() { breakLine( false ); }
/** * Called to print a line consisting of the text accumulated so * far. This is equivalent to calling {@link #printSpace} but * forcing the line to print and starting a new line ({@link * #printSpace} will only start a new line if the current line * is long enough). */ public void breakLine() { breakLine( false ); }
/** * Flush the output stream. Must be called when done printing * the document, otherwise some text might be buffered. */ public void flush() { if ( _line.length() > 0 || _text.length() > 0 ) breakLine(); try { _writer.flush(); } catch ( IOException except ) { // We don't throw an exception, but hold it // until the end of the document. if ( _exception == null ) _exception = except; } }
/** * Flush the output stream. Must be called when done printing * the document, otherwise some text might be buffered. */ public void flush() { if ( _line.length() > 0 || _text.length() > 0 ) breakLine(); try { _writer.flush(); } catch ( IOException except ) { // We don't throw an exception, but hold it // until the end of the document. if ( _exception == null ) _exception = except; } }