Package com.adobe.acs.commons.util
Class ResourceDataUtil
- java.lang.Object
-
- com.adobe.acs.commons.util.ResourceDataUtil
-
@ProviderType public class ResourceDataUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringENCODING_UTF_8
-
Constructor Summary
Constructors Constructor Description ResourceDataUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
ENCODING_UTF_8
public static final String ENCODING_UTF_8
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIncludeAsString
public static String getIncludeAsString(String path, org.apache.sling.api.SlingHttpServletRequest slingRequest, org.apache.sling.api.SlingHttpServletResponse slingResponse)
-
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
-
-