* @return
* @throws Exception
*/
private InstallFileType processFiles(PackageType pkgMeta, XMLStreamReader2 xmlStreamReader) throws Exception
{
InstallFileType fileMeta = new InstallFileImpl(pkgMeta);
for (int i = 0; i < xmlStreamReader.getAttributeCount(); i++)
{
String name = xmlStreamReader.getAttributeLocalName(i);
if ("src-path".equals(name))
{
fileMeta.setSrcPath(xmlStreamReader.getAttributeValue(i));
}
else if ("name".equals(name))
{
fileMeta.setName(xmlStreamReader.getAttributeValue(i));
}
else if ("dest-path".equals(name))
{
fileMeta.setDestPath(xmlStreamReader.getAttributeValue(i));
}
else if ("type".equals(name))
{
fileMeta.setType(xmlStreamReader.getAttributeValue(i));
}
}
// consume the end event of file
int event = xmlStreamReader.next();