FileToZip file = zipManifest.get(name); long zipDate = entry.getTime(); long lastMod = file.getLastModified(); FileToZip file = zipManifest.get(name); ZipEntry ze = new ZipEntry(name); if (file.getComment() != null) { ze.setComment(file.getComment()); ze.setMethod(file.getMethod()); outZip.setLevel(file.getLevel()); URI uri = zipManifest.get(name).getHref(); String href = uri.toASCIIString();
public FileToZip(String zipName, String href, int method, int level, String comment, XdmNode entry) { try { origHref = href; this.zipName = zipName; this.href = new URI(href); this.method = method; this.level = level; this.comment = comment; lastModified = readLastModified(this.href); // FIXME: There's no validation here... for (QName attr : serializerAttrs) { String value = entry.getAttributeValue(attr); if (value != null) { if (options == null) { options = new Hashtable<QName, String> (); } options.put(attr, value); } } } catch (URISyntaxException use) { throw new XProcException(use); } }
FileToZip file = zipManifest.get(name); long zipDate = entry.getTime(); long lastMod = file.getLastModified(); FileToZip file = zipManifest.get(name); ZipEntry ze = new ZipEntry(name); if (file.getComment() != null) { ze.setComment(file.getComment()); ze.setMethod(file.getMethod()); outZip.setLevel(file.getLevel()); URI uri = zipManifest.get(name).getHref(); String href = uri.toASCIIString();
zipManifest.put(name, new FileToZip(name, hrefuri, method, level, comment, child)); } else { throw new XProcException(step.getNode(), "Unexpected element in cx:zip manifest: " + child.getNodeName());
zipManifest.put(name, new FileToZip(name, hrefuri, method, level, comment, child)); } else { throw new XProcException(step.getNode(), "Unexpected element in cx:zip manifest: " + child.getNodeName());
public FileToZip(String zipName, String href, int method, int level, String comment, XdmNode entry) { try { origHref = href; this.zipName = zipName; this.href = new URI(href); this.method = method; this.level = level; this.comment = comment; lastModified = readLastModified(this.href); // FIXME: There's no validation here... for (QName attr : serializerAttrs) { String value = entry.getAttributeValue(attr); if (value != null) { if (options == null) { options = new Hashtable<QName, String> (); } options.put(attr, value); } } } catch (URISyntaxException use) { throw new XProcException(use); } }
public void storeXML(FileToZip file, XdmNode doc, OutputStream out) throws SaxonApiException { Serializer serializer = makeSerializer(file.getOptions()); serializer.setOutputStream(out); S9apiUtils.serialize(runtime, doc, serializer); }
public void storeXML(FileToZip file, XdmNode doc, OutputStream out) throws SaxonApiException { Serializer serializer = makeSerializer(file.getOptions()); serializer.setOutputStream(out); S9apiUtils.serialize(runtime, doc, serializer); }