public class TextUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TextUtils.TextExtractor
A SAX ContentHandler that writes all #PCDATA onto a java.io.Writer
From http://www.cafeconleche.org/books/xmljava/chapters/ch06s03.html
|
Constructor and Description |
---|
TextUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
extractText(Object o,
Writer w)
Extract contents of descendant
|
static void |
extractText(Object o,
Writer w,
JAXBContext jc)
Extract contents of descendant
|
static void |
extractText(Object o,
Writer w,
JAXBContext jc,
String uri,
String local,
Class declaredType)
Extract contents of descendant
|
static String |
getText(Object o)
Extract contents of descendant
|
static void |
main(String[] args) |
public static String getText(Object o)
o
- public static void extractText(Object o, Writer w) throws Exception
o
- jcSVG
- JAXBContextException
public static void extractText(Object o, Writer w, JAXBContext jc) throws Exception
o
- jc
- JAXBContextException
public static void extractText(Object o, Writer w, JAXBContext jc, String uri, String local, Class declaredType) throws Exception
o
- w
- jc
- uri
- local
- declaredType
- Exception
Copyright © 2007-2019. All Rights Reserved.