@Deprecated public class Xpp3Helper extends Object
Xpp3Reader.
In this class, there is some methods to obtain a discovered Xpp3Reader
registred by a ServiceLoader mecanism.Xpp3Reader| Modifier and Type | Field and Description |
|---|---|
protected static Map<Class<?>,Xpp3Reader<?>> |
readers
Deprecated.
les readers enregistres via un
ServiceLoader
sur le contrat Xpp3Reader. |
| Constructor and Description |
|---|
Xpp3Helper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultEntities(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
Deprecated.
Add to the parser, the default replacers for all single characters
from the XHTML specification.
|
static void |
clearReaders()
Deprecated.
Clean all the registred readers.
|
static <T> Xpp3Reader<T> |
getReader(Class<T> klass)
Deprecated.
Obtain the loaded reader which match his
Xpp3Reader.getType()
with the given type. |
static Iterator<Xpp3Reader<?>> |
getReaderItetator()
Deprecated.
|
protected static Map<Class<?>,Xpp3Reader<?>> |
getReaders()
Deprecated.
Load (if
readers is null the readers via a
ServiceLoader of contract Xpp3Reader and returns
the dictionnary of discovered associated to their type
(Xpp3Reader.getType()). |
static <O> O |
readObject(Class<O> klass,
Reader reader)
Deprecated.
Read a single object from a xml stream.
|
static <O> O[] |
readObjects(Class<O> klass,
Reader reader)
Deprecated.
Read an array of objects from a xml stream.
|
protected static Map<Class<?>,Xpp3Reader<?>> readers
ServiceLoader
sur le contrat Xpp3Reader.public static <O> O readObject(Class<O> klass, Reader reader) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
O - the type of object to readklass - the type of object to readreader - the reader where to parse the xmlIOException - if any io pborg.codehaus.plexus.util.xml.pull.XmlPullParserException - if any parsing pbpublic static <O> O[] readObjects(Class<O> klass, Reader reader) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
O - the type of objects to returnklass - the type of object to readreader - the reader where to parse the xmlIOException - if any io pborg.codehaus.plexus.util.xml.pull.XmlPullParserException - if any parsing pbpublic static Iterator<Xpp3Reader<?>> getReaderItetator()
Xpp3Reader.public static <T> Xpp3Reader<T> getReader(Class<T> klass)
Xpp3Reader.getType()
with the given type.T - the type of the data which should be parsed by the
researched parserklass - the type of the data which should be parsed by the
researched parserpublic static void clearReaders()
getReader(Class).public static void addDefaultEntities(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - the parser to configureorg.codehaus.plexus.util.xml.pull.XmlPullParserException - if any pbprotected static Map<Class<?>,Xpp3Reader<?>> getReaders()
readers is null the readers via a
ServiceLoader of contract Xpp3Reader and returns
the dictionnary of discovered associated to their type
(Xpp3Reader.getType()).Xpp3Reader registred via a ServiceLoader
on the contract Xpp3Reader associated to their type
(Xpp3Reader.getType()).Copyright © 2009-2012 CodeLutin. All Rights Reserved.