1 package org.apache.maven.reporting.sink;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import org.apache.maven.doxia.sink.SinkAdapter;
23 import org.apache.maven.doxia.sink.Sink;
24
25 /**
26 * @author Emmanuel Venisse
27 *
28 */
29 public class MultiPageSink
30 extends SinkAdapter
31 {
32 private String outputName;
33
34 private Sink sink;
35
36 public MultiPageSink( String outputName, Sink sink )
37 {
38 this.outputName = outputName;
39 this.sink = sink;
40 }
41
42 public String getOutputName()
43 {
44 return outputName;
45 }
46
47 public Sink getEmbeddedSink()
48 {
49 return sink;
50 }
51
52 public void closeSink()
53 {
54 sink.body_();
55 sink.flush();
56 sink.close();
57 }
58
59 /**
60 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#anchor_()
61 */
62 public void anchor_()
63 {
64 sink.anchor_();
65 }
66
67 /**
68 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#anchor(java.lang.String)
69 */
70 public void anchor( String arg0 )
71 {
72 sink.anchor( arg0 );
73 }
74
75 /**
76 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#author_()
77 */
78 public void author_()
79 {
80 sink.author_();
81 }
82
83 /**
84 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#author()
85 */
86 public void author()
87 {
88 sink.author();
89 }
90
91 /**
92 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#body()
93 */
94 public void body()
95 {
96 sink.body();
97 }
98
99 /**
100 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#body_()
101 */
102 public void body_()
103 {
104 }
105
106 /**
107 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#bold_()
108 */
109 public void bold_()
110 {
111 sink.bold_();
112 }
113
114 /**
115 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#bold()
116 */
117 public void bold()
118 {
119 sink.bold();
120 }
121
122 /**
123 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#close()
124 */
125 public void close()
126 {
127 }
128
129 /**
130 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#date_()
131 */
132 public void date_()
133 {
134 sink.date_();
135 }
136
137 /**
138 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#date()
139 */
140 public void date()
141 {
142 sink.date();
143 }
144
145 /**
146 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definedTerm_()
147 */
148 public void definedTerm_()
149 {
150 sink.definedTerm_();
151 }
152
153 /**
154 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definedTerm()
155 */
156 public void definedTerm()
157 {
158 sink.definedTerm();
159 }
160
161 /**
162 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definition_()
163 */
164 public void definition_()
165 {
166 sink.definition_();
167 }
168
169 /**
170 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definition()
171 */
172 public void definition()
173 {
174 sink.definition();
175 }
176
177 /**
178 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definitionList_()
179 */
180 public void definitionList_()
181 {
182 sink.definitionList_();
183 }
184
185 /**
186 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definitionList()
187 */
188 public void definitionList()
189 {
190 sink.definitionList();
191 }
192
193 /**
194 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definitionListItem_()
195 */
196 public void definitionListItem_()
197 {
198 sink.definitionListItem_();
199 }
200
201 /**
202 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#definitionListItem()
203 */
204 public void definitionListItem()
205 {
206 sink.definitionListItem();
207 }
208
209 /**
210 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#figure_()
211 */
212 public void figure_()
213 {
214 sink.figure_();
215 }
216
217 /**
218 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#figure()
219 */
220 public void figure()
221 {
222 sink.figure();
223 }
224
225 /**
226 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#figureCaption_()
227 */
228 public void figureCaption_()
229 {
230 sink.figureCaption_();
231 }
232
233 /**
234 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#figureCaption()
235 */
236 public void figureCaption()
237 {
238 sink.figureCaption();
239 }
240
241 /**
242 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#figureGraphics(java.lang.String)
243 */
244 public void figureGraphics( String arg0 )
245 {
246 sink.figureGraphics( arg0 );
247 }
248
249 /**
250 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#flush()
251 */
252 public void flush()
253 {
254 sink.flush();
255 }
256
257 /**
258 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#head_()
259 */
260 public void head_()
261 {
262 sink.head_();
263 }
264
265 /**
266 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#head()
267 */
268 public void head()
269 {
270 sink.head();
271 }
272
273 /**
274 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#horizontalRule()
275 */
276 public void horizontalRule()
277 {
278 sink.horizontalRule();
279 }
280
281 /**
282 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#italic_()
283 */
284 public void italic_()
285 {
286 sink.italic_();
287 }
288
289 /**
290 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#italic()
291 */
292 public void italic()
293 {
294 sink.italic();
295 }
296
297 /**
298 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#lineBreak()
299 */
300 public void lineBreak()
301 {
302 sink.lineBreak();
303 }
304
305 /**
306 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#link_()
307 */
308 public void link_()
309 {
310 sink.link_();
311 }
312
313 /**
314 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#link(java.lang.String)
315 */
316 public void link( String arg0 )
317 {
318 sink.link( arg0 );
319 }
320
321 /**
322 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#list_()
323 */
324 public void list_()
325 {
326 sink.list_();
327 }
328
329 /**
330 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#list()
331 */
332 public void list()
333 {
334 sink.list();
335 }
336
337 /**
338 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#listItem_()
339 */
340 public void listItem_()
341 {
342 sink.listItem_();
343 }
344
345 /**
346 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#listItem()
347 */
348 public void listItem()
349 {
350 sink.listItem();
351 }
352
353 /**
354 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#monospaced_()
355 */
356 public void monospaced_()
357 {
358 sink.monospaced_();
359 }
360
361 /**
362 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#monospaced()
363 */
364 public void monospaced()
365 {
366 sink.monospaced();
367 }
368
369 /**
370 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#nonBreakingSpace()
371 */
372 public void nonBreakingSpace()
373 {
374 sink.nonBreakingSpace();
375 }
376
377 /**
378 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#numberedList_()
379 */
380 public void numberedList_()
381 {
382 sink.numberedList_();
383 }
384
385 /**
386 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#numberedList(int)
387 */
388 public void numberedList( int arg0 )
389 {
390 sink.numberedList( arg0 );
391 }
392
393 /**
394 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#numberedListItem_()
395 */
396 public void numberedListItem_()
397 {
398 sink.numberedListItem_();
399 }
400
401 /**
402 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#numberedListItem()
403 */
404 public void numberedListItem()
405 {
406 sink.numberedListItem();
407 }
408
409 /**
410 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#pageBreak()
411 */
412 public void pageBreak()
413 {
414 sink.pageBreak();
415 }
416
417 /**
418 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#paragraph_()
419 */
420 public void paragraph_()
421 {
422 sink.paragraph_();
423 }
424
425 /**
426 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#paragraph()
427 */
428 public void paragraph()
429 {
430 sink.paragraph();
431 }
432
433 /**
434 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#rawText(java.lang.String)
435 */
436 public void rawText( String arg0 )
437 {
438 sink.rawText( arg0 );
439 }
440
441 /**
442 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section1_()
443 */
444 public void section1_()
445 {
446 sink.section1_();
447 }
448
449 /**
450 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section1()
451 */
452 public void section1()
453 {
454 sink.section1();
455 }
456
457 /**
458 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section2_()
459 */
460 public void section2_()
461 {
462 sink.section2_();
463 }
464
465 /**
466 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section2()
467 */
468 public void section2()
469 {
470 sink.section2();
471 }
472
473 /**
474 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section3_()
475 */
476 public void section3_()
477 {
478 sink.section3_();
479 }
480
481 /**
482 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section3()
483 */
484 public void section3()
485 {
486 sink.section3();
487 }
488
489 /**
490 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section4_()
491 */
492 public void section4_()
493 {
494 sink.section4_();
495 }
496
497 /**
498 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section4()
499 */
500 public void section4()
501 {
502 sink.section4();
503 }
504
505 /**
506 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section5_()
507 */
508 public void section5_()
509 {
510 sink.section5_();
511 }
512
513 /**
514 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#section5()
515 */
516 public void section5()
517 {
518 sink.section5();
519 }
520
521 /**
522 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle_()
523 */
524 public void sectionTitle_()
525 {
526 sink.sectionTitle_();
527 }
528
529 /**
530 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle()
531 */
532 public void sectionTitle()
533 {
534 sink.sectionTitle();
535 }
536
537 /**
538 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle1_()
539 */
540 public void sectionTitle1_()
541 {
542 sink.sectionTitle1_();
543 }
544
545 /**
546 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle1()
547 */
548 public void sectionTitle1()
549 {
550 sink.sectionTitle1();
551 }
552
553 /**
554 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle2_()
555 */
556 public void sectionTitle2_()
557 {
558 sink.sectionTitle2_();
559 }
560
561 /**
562 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle2()
563 */
564 public void sectionTitle2()
565 {
566 sink.sectionTitle2();
567 }
568
569 /**
570 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle3_()
571 */
572 public void sectionTitle3_()
573 {
574 sink.sectionTitle3_();
575 }
576
577 /**
578 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle3()
579 */
580 public void sectionTitle3()
581 {
582 sink.sectionTitle3();
583 }
584
585 /**
586 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle4_()
587 */
588 public void sectionTitle4_()
589 {
590 sink.sectionTitle4_();
591 }
592
593 /**
594 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle4()
595 */
596 public void sectionTitle4()
597 {
598 sink.sectionTitle4();
599 }
600
601 /**
602 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle5_()
603 */
604 public void sectionTitle5_()
605 {
606 sink.sectionTitle5_();
607 }
608
609 /**
610 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#sectionTitle5()
611 */
612 public void sectionTitle5()
613 {
614 sink.sectionTitle5();
615 }
616
617 /**
618 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#table_()
619 */
620 public void table_()
621 {
622 sink.table_();
623 }
624
625 /**
626 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#table()
627 */
628 public void table()
629 {
630 sink.table();
631 }
632
633 /**
634 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableCaption_()
635 */
636 public void tableCaption_()
637 {
638 sink.tableCaption_();
639 }
640
641 /**
642 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableCaption()
643 */
644 public void tableCaption()
645 {
646 sink.tableCaption();
647 }
648
649 /**
650 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableCell_()
651 */
652 public void tableCell_()
653 {
654 sink.tableCell_();
655 }
656
657 /**
658 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableCell()
659 */
660 public void tableCell()
661 {
662 sink.tableCell();
663 }
664
665 /**
666 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableHeaderCell_()
667 */
668 public void tableHeaderCell_()
669 {
670 sink.tableHeaderCell_();
671 }
672
673 /**
674 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableHeaderCell()
675 */
676 public void tableHeaderCell()
677 {
678 sink.tableHeaderCell();
679 }
680
681 /**
682 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableRow_()
683 */
684 public void tableRow_()
685 {
686 sink.tableRow_();
687 }
688
689 /**
690 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableRow()
691 */
692 public void tableRow()
693 {
694 sink.tableRow();
695 }
696
697 /**
698 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableRows_()
699 */
700 public void tableRows_()
701 {
702 sink.tableRows_();
703 }
704
705 /**
706 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#tableRows(int[], boolean)
707 */
708 public void tableRows( int[] arg0, boolean arg1 )
709 {
710 sink.tableRows( arg0, arg1 );
711 }
712
713 /**
714 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#text(java.lang.String)
715 */
716 public void text( String arg0 )
717 {
718 sink.text( arg0 );
719 }
720
721 /**
722 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#title_()
723 */
724 public void title_()
725 {
726 sink.title_();
727 }
728
729 /**
730 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#title()
731 */
732 public void title()
733 {
734 sink.title();
735 }
736
737 /**
738 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#verbatim_()
739 */
740 public void verbatim_()
741 {
742 sink.verbatim_();
743 }
744
745 /**
746 * @see org.codehaus.doxia.module.xhtml.SinkAdapter#verbatim(boolean)
747 */
748 public void verbatim( boolean arg0 )
749 {
750 sink.verbatim( arg0 );
751 }
752 }