Package org.ametys.core.util
Class XMLUtils
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.core.util.XMLUtils
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
public class XMLUtils extends AbstractLogEnabled implements Component, Serviceable
Component with XML utils methods
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
XMLUtils.TxtHandler
-
Field Summary
Fields Modifier and Type Field Description protected ServiceManager
_manager
Avalon service managerstatic String
ROLE
The avalon role
-
Constructor Summary
Constructors Constructor Description XMLUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
service(ServiceManager manager)
String
toString(InputStream is)
Get a XML as a string and extract the text only-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_manager
protected ServiceManager _manager
Avalon service manager
-
-
Constructor Detail
-
XMLUtils
public XMLUtils()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
toString
public String toString(InputStream is)
Get a XML as a string and extract the text only- Parameters:
is
- The inputstream of XML- Returns:
- The text or null if the XML is not well formed
-
-