1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.joran.event.stax;
15
16 import javax.xml.stream.Location;
17
18 public class BodyEvent extends StaxEvent {
19
20 private String text;
21
22 BodyEvent(String text, Location location) {
23 super(null, location);
24 this.text = text;
25 }
26
27 public String getText() {
28 return text;
29 }
30
31 void append(String txt) {
32 text += txt;
33 }
34
35 @Override
36 public String toString() {
37 return "BodyEvent(" + getText() + ")" + location.getLineNumber() + "," + location.getColumnNumber();
38 }
39 }