/** * Get the archive if it is currently stored in RAM. * * @return a byte array representation of a JRCS archive or an empty array if the archive is not * available on the heap. * @throws XWikiException if anything goes wrong. */ public byte[] getArchive() throws XWikiException { return getArchive(null); }
if (archive != null) { attachmentParameters.put(XWikiWikiAttachmentFilter.PARAMETER_JRCSREVISIONS, new String(archive.getArchive()));
el = new DOMElement("versions"); try { el.addText(new String(aarchive.getArchive())); wr.write(el); } catch (XWikiException e) {