xmlString = xmlString.concat(new String(b, 0, readed, "ISO-8859-1")); xmlFilesList.add(new LabelValueBean(entry.getName(), xmlString));
stringBuilder.append(new String(b, 0, readed, "ISO-8859-1")); if (stringBuilder.length() <= FILE_SIZE_LIMIT) { xmlFilesList.add(new LabelValueBean(entry.getName(), stringBuilder.toString()));
    private List getXmlFilesList(FormFile xmlZipFile) {        List xmlFilesList = new ArrayList();        ZipInputStream zipFile = null;        try {            if (xmlZipFile.getContentType().equals("text/xml")) {                if (xmlZipFile.getFileSize() <= FILE_SIZE_LIMIT) {                    xmlFilesList.add(new LabelValueBean(xmlZipFile.getFileName(), new String(xmlZipFile                            .getFileData(), "ISO-8859-1")));                    // changeDocumentType(new String(xmlZipFile.getFileData(),                    // "ISO-8859-1"), false)));                }            } else {                zipFile = new ZipInputStream(xmlZipFile.getInputStream());                while (true) {                    ZipEntry entry = zipFile.getNextEntry();                    if (entry.getSize() <= FILE_SIZE_LIMIT) {                        String xmlString = new String();                        if (entry == null)                            break;                        byte[] b = new byte[1000];                        int readed = 0;                        while ((readed = zipFile.read(b)) > -1)                            xmlString = xmlString.concat(new String(b, 0, readed, "ISO-8859-1"));                        xmlFilesList.add(new LabelValueBean(entry.getName(), xmlString));                    }                }                zipFile.close();            }        } catch (Exception e) {            return null;        }        return xmlFilesList;    }