Package com.adobe.acs.commons.util
Class ResourceDataUtil
java.lang.Object
com.adobe.acs.commons.util.ResourceDataUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetIncludeAsString(String path, org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse) static InputStreamgetNTFileAsInputStream(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) static InputStreamgetNTFileAsInputStream(org.apache.sling.api.resource.Resource resource) static StringgetNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) static StringgetNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver, String encoding) static StringgetNTFileAsString(org.apache.sling.api.resource.Resource resource) static StringgetNTFileAsString(org.apache.sling.api.resource.Resource resource, String encoding)
-
Field Details
-
ENCODING_UTF_8
- See Also:
-
-
Constructor Details
-
ResourceDataUtil
public ResourceDataUtil()
-
-
Method Details
-
getIncludeAsString
-
getNTFileAsInputStream
public static InputStream getNTFileAsInputStream(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
getNTFileAsInputStream
public static InputStream getNTFileAsInputStream(org.apache.sling.api.resource.Resource resource) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
getNTFileAsString
public static String getNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.jcr.RepositoryException, IOException - Throws:
javax.jcr.RepositoryExceptionIOException
-
getNTFileAsString
public static String getNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver, String encoding) throws javax.jcr.RepositoryException, IOException - Throws:
javax.jcr.RepositoryExceptionIOException
-
getNTFileAsString
public static String getNTFileAsString(org.apache.sling.api.resource.Resource resource) throws javax.jcr.RepositoryException, IOException - Throws:
javax.jcr.RepositoryExceptionIOException
-
getNTFileAsString
public static String getNTFileAsString(org.apache.sling.api.resource.Resource resource, String encoding) throws javax.jcr.RepositoryException, IOException - Throws:
javax.jcr.RepositoryExceptionIOException
-