public class ManifestParser extends DefaultHandler
Modifier and Type | Class and Description |
---|---|
static interface |
ManifestParser.IncludedFileReader
A callback to read included xml files.
|
Constructor and Description |
---|
ManifestParser(ManifestParser.IncludedFileReader includedReader,
String filename,
String defaultBranch,
String baseUrl,
String groups,
Repository rootRepo)
Constructor for ManifestParser
|
Modifier and Type | Method and Description |
---|---|
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
List<RepoProject> |
getFilteredProjects()
Getter for filterdProjects.
|
List<RepoProject> |
getProjects()
Getter for projects.
|
void |
read(InputStream inputStream)
Read the xml file.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ManifestParser(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo)
includedReader
- a
ManifestParser.IncludedFileReader
object.filename
- a String
object.defaultBranch
- a String
object.baseUrl
- a String
object.groups
- a String
object.rootRepo
- a Repository
object.public void read(InputStream inputStream) throws IOException
inputStream
- a InputStream
object.IOException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public List<RepoProject> getProjects()
@NonNull public List<RepoProject> getFilteredProjects()
Copyright © 2021 Eclipse JGit Project. All rights reserved.