@Service
@Property(name="extensions",value={"zip","jar"}) @Property(name="contentTypes",value={"application/zip","application/java-archive"})
public class ZipReader
extends Object
implements ContentReader
ZipReader TODOPROPERTY_EXTENSIONS, PROPERTY_TYPES| Constructor and Description |
|---|
ZipReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(InputStream ins,
ContentCreator creator)
Read the content from the input stream and create the
content using the provided content creator.
|
void |
parse(URL url,
ContentCreator creator)
Read the content from the URL and create the
content using the provided content creator.
|
public void parse(URL url, ContentCreator creator) throws IOException, javax.jcr.RepositoryException
ContentReaderparse in interface ContentReaderurl - The input stream.IOExceptionjavax.jcr.RepositoryExceptionContentReader.parse(java.net.URL, org.apache.sling.jcr.contentloader.ContentCreator)public void parse(InputStream ins, ContentCreator creator) throws IOException, javax.jcr.RepositoryException
ContentReaderparse in interface ContentReaderins - the input stream.IOExceptionjavax.jcr.RepositoryExceptionContentReader.parse(java.io.InputStream, org.apache.sling.jcr.contentloader.ContentCreator)Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.