Class StaxParser
- java.lang.Object
-
- org.apache.felix.utils.repository.StaxParser
-
public final class StaxParser extends java.lang.Object
Repository XML xml based on StaX
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaxParser.Referral
static class
StaxParser.XmlRepository
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE
static java.lang.String
CAPABILITY
static java.lang.String
DEPTH
static java.lang.String
DIRECTIVE
static java.lang.String
INCREMENT
static java.lang.String
NAME
static java.lang.String
NAMESPACE
static java.lang.String
REFERRAL
static java.lang.String
REPO_NAME
static java.lang.String
REPOSITORY
static java.lang.String
REPOSITORY_NAMESPACE
static java.lang.String
REQUIREMENT
static java.lang.String
RESOURCE
static java.lang.String
TYPE
static java.lang.String
URL
static java.lang.String
VALUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StaxParser.XmlRepository
parse(java.io.InputStream is)
static StaxParser.XmlRepository
parse(java.net.URI repositoryUrl, java.io.InputStream is)
static StaxParser.XmlRepository
parse(java.net.URI repositoryUrl, java.io.InputStream is, StaxParser.XmlRepository previous)
static void
write(StaxParser.XmlRepository repository, java.io.Writer os)
-
-
-
Field Detail
-
REPOSITORY
public static final java.lang.String REPOSITORY
- See Also:
- Constant Field Values
-
REPO_NAME
public static final java.lang.String REPO_NAME
- See Also:
- Constant Field Values
-
INCREMENT
public static final java.lang.String INCREMENT
- See Also:
- Constant Field Values
-
REFERRAL
public static final java.lang.String REFERRAL
- See Also:
- Constant Field Values
-
DEPTH
public static final java.lang.String DEPTH
- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
- See Also:
- Constant Field Values
-
RESOURCE
public static final java.lang.String RESOURCE
- See Also:
- Constant Field Values
-
CAPABILITY
public static final java.lang.String CAPABILITY
- See Also:
- Constant Field Values
-
REQUIREMENT
public static final java.lang.String REQUIREMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
ATTRIBUTE
public static final java.lang.String ATTRIBUTE
- See Also:
- Constant Field Values
-
DIRECTIVE
public static final java.lang.String DIRECTIVE
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
REPOSITORY_NAMESPACE
public static final java.lang.String REPOSITORY_NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public static void write(StaxParser.XmlRepository repository, java.io.Writer os) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parse
public static StaxParser.XmlRepository parse(java.io.InputStream is) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parse
public static StaxParser.XmlRepository parse(java.net.URI repositoryUrl, java.io.InputStream is) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
parse
public static StaxParser.XmlRepository parse(java.net.URI repositoryUrl, java.io.InputStream is, StaxParser.XmlRepository previous) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
-