requestedSubAttributes.add(URIConverter.ATTRIBUTE_READ_ONLY); Map<Object, Object> subOptions = new ExtensibleURIConverterImpl.OptionsMap(URIConverter.OPTION_REQUESTED_ATTRIBUTES, requestedSubAttributes, options); result.putAll(getURIConverter(subOptions).getAttributes(URI.createURI(getNestedURL()), subOptions)); if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_DIRECTORY)) inputStream = getInputStream(); inputStream.close(); result.put(URIConverter.ATTRIBUTE_DIRECTORY, zipEntry.isDirectory()); inputStream = getInputStream(); inputStream.close(); inputStream = getInputStream(); inputStream.close();
public void setAttributes(Map<String, ?> attributes) throws IOException { Long timeStamp = (Long)attributes.get(URIConverter.ATTRIBUTE_TIME_STAMP); if (timeStamp != null) { setTimeStamp(timeStamp); } } }
requestedSubAttributes.add(URIConverter.ATTRIBUTE_READ_ONLY); Map<Object, Object> subOptions = new ExtensibleURIConverterImpl.OptionsMap(URIConverter.OPTION_REQUESTED_ATTRIBUTES, requestedSubAttributes, options); result.putAll(getURIConverter(subOptions).getAttributes(URI.createURI(getNestedURL()), subOptions)); if (requestedAttributes == null || requestedAttributes.contains(URIConverter.ATTRIBUTE_DIRECTORY)) inputStream = getInputStream(); inputStream.close(); result.put(URIConverter.ATTRIBUTE_DIRECTORY, zipEntry.isDirectory()); inputStream = getInputStream(); inputStream.close(); inputStream = getInputStream(); inputStream.close();
@Override public OutputStream createOutputStream(URI uri, Map<?, ?> options) throws IOException { return createArchive(uri, options).getOutputStream(); }
protected Archive createArchive(URI uri, Map<?, ?> options) { return new Archive(uri, options); } }
@Override public void setAttributes(URI uri, Map<String, ?> attributes, Map<?, ?> options) throws IOException { createArchive(uri, options).setAttributes(attributes); }
@Override public OutputStream createOutputStream(URI uri, Map<?, ?> options) throws IOException { return createArchive(uri, options).getOutputStream(); }
@Override public void delete(URI uri, Map<?, ?> options) throws IOException { createArchive(uri, options).delete(); }
@Override public InputStream createInputStream(URI uri, Map<?, ?> options) throws IOException { return createArchive(uri, options).getInputStream(); }
@Override public Map<String, ?> getAttributes(URI uri, Map<?, ?> options) { return createArchive(uri, options).getAttributes(); }
@Override public void delete(URI uri, Map<?, ?> options) throws IOException { createArchive(uri, options).delete(); }
@Override public InputStream createInputStream(URI uri, Map<?, ?> options) throws IOException { return createArchive(uri, options).getInputStream(); }
@Override public Map<String, ?> getAttributes(URI uri, Map<?, ?> options) { return createArchive(uri, options).getAttributes(); }
protected Archive createArchive(URI uri, Map<?, ?> options) { return new Archive(uri, options); } }
@Override public void setAttributes(URI uri, Map<String, ?> attributes, Map<?, ?> options) throws IOException { createArchive(uri, options).setAttributes(attributes); }
public void setAttributes(Map<String, ?> attributes) throws IOException { Long timeStamp = (Long)attributes.get(URIConverter.ATTRIBUTE_TIME_STAMP); if (timeStamp != null) { setTimeStamp(timeStamp); } } }