@ProviderType public class ResourceDataUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODING_UTF_8 |
| Constructor and Description |
|---|
ResourceDataUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIncludeAsString(String path,
org.apache.sling.api.SlingHttpServletRequest slingRequest,
org.apache.sling.api.SlingHttpServletResponse slingResponse) |
static InputStream |
getNTFileAsInputStream(org.apache.sling.api.resource.Resource resource) |
static InputStream |
getNTFileAsInputStream(String path,
org.apache.sling.api.resource.ResourceResolver resourceResolver) |
static String |
getNTFileAsString(org.apache.sling.api.resource.Resource resource) |
static String |
getNTFileAsString(org.apache.sling.api.resource.Resource resource,
String encoding) |
static String |
getNTFileAsString(String path,
org.apache.sling.api.resource.ResourceResolver resourceResolver) |
static String |
getNTFileAsString(String path,
org.apache.sling.api.resource.ResourceResolver resourceResolver,
String encoding) |
public static final String ENCODING_UTF_8
public static String getIncludeAsString(String path, org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse)
public static InputStream getNTFileAsInputStream(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static InputStream getNTFileAsInputStream(org.apache.sling.api.resource.Resource resource) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static String getNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionpublic static String getNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver, String encoding) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionpublic static String getNTFileAsString(org.apache.sling.api.resource.Resource resource) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionpublic static String getNTFileAsString(org.apache.sling.api.resource.Resource resource, String encoding) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionCopyright © 2013–2020 Adobe. All rights reserved.