de.trantor.xml.pullparser.event
Class TextEvent
java.lang.Object
|
+--de.trantor.xml.pullparser.event.TextEvent
- public class TextEvent
- extends java.lang.Object
- implements ParseEvent
A class for events indicating character data like
"normal" text or ignorable whitespace.
|
Constructor Summary |
TextEvent(int type,
char[] chars,
int start,
int len)
|
|
Method Summary |
java.lang.String |
getText()
returns the actual character data as String |
int |
getType()
returns CHARACTERS or IGNORABLE_WHITESPACE, depending on the
type of the text node |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
TextEvent
public TextEvent(int type,
char[] chars,
int start,
int len)
getText
public java.lang.String getText()
- returns the actual character data as String
getType
public int getType()
- returns CHARACTERS or IGNORABLE_WHITESPACE, depending on the
type of the text node
- Specified by:
- getType in interface ParseEvent
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object