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
Component with XML utils methods
-
Field Summary
Modifier and TypeFieldDescriptionprotected ServiceManager
Avalon service managerstatic final String
The avalon role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
service
(ServiceManager manager) toString
(InputStream is) Get a XML as a string and extract the text onlyMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The avalon role -
_manager
Avalon service manager
-
-
Constructor Details
-
XMLUtils
public XMLUtils()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
toString
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
-