1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.wikimodel; |
21 |
|
|
22 |
|
|
23 |
|
@version |
24 |
|
@since |
25 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 7 |
Complexity Density: 0.88 |
|
26 |
|
public class WikiPrinter implements IWikiPrinter |
27 |
|
{ |
28 |
|
private StringBuffer fBuffer; |
29 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
0
|
public WikiPrinter()... |
31 |
|
{ |
32 |
0
|
this(new StringBuffer()); |
33 |
|
} |
34 |
|
|
35 |
|
|
36 |
|
@param |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
38 |
0
|
public WikiPrinter(StringBuffer buffer)... |
39 |
|
{ |
40 |
0
|
fBuffer = buffer; |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0
|
public StringBuffer getBuffer()... |
44 |
|
{ |
45 |
0
|
return fBuffer; |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
@return |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
protected String getEol()... |
52 |
|
{ |
53 |
0
|
return "\n"; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
@see |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public void print(String str)... |
60 |
|
{ |
61 |
0
|
fBuffer.append(str); |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
@see |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
67 |
0
|
public void println(String str)... |
68 |
|
{ |
69 |
0
|
fBuffer.append(str); |
70 |
0
|
fBuffer.append(getEol()); |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
@see |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public String toString()... |
77 |
|
{ |
78 |
0
|
return fBuffer.toString(); |
79 |
|
} |
80 |
|
} |