public interface DistributionContentSerializer
Modifier and Type | Method and Description |
---|---|
void |
exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.distribution.DistributionRequest request,
OutputStream outputStream)
extracts the resources identified by the given request into the given outputStream
|
String |
getName()
retrieve the name of this content serializer
|
void |
importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver,
InputStream stream)
imports the given stream
|
void exportToStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, org.apache.sling.distribution.DistributionRequest request, OutputStream outputStream) throws DistributionException
resourceResolver
- the user resource resolverrequest
- a distribution requestoutputStream
- the output streamDistributionException
- if extraction fails for some reasonvoid importFromStream(org.apache.sling.api.resource.ResourceResolver resourceResolver, InputStream stream) throws DistributionException
resourceResolver
- the user resource resolverstream
- the stream to importDistributionException
- if importing fails for some reasonString getName()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.