Class ResourceDataUtil

java.lang.Object
com.adobe.acs.commons.util.ResourceDataUtil

@ProviderType public class ResourceDataUtil extends Object
  • Field Details

  • Constructor Details

    • ResourceDataUtil

      public ResourceDataUtil()
  • Method Details

    • 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.RepositoryException
      IOException
    • getNTFileAsString

      public static String getNTFileAsString(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver, String encoding) throws javax.jcr.RepositoryException, IOException
      Throws:
      javax.jcr.RepositoryException
      IOException
    • getNTFileAsString

      public static String getNTFileAsString(org.apache.sling.api.resource.Resource resource) throws javax.jcr.RepositoryException, IOException
      Throws:
      javax.jcr.RepositoryException
      IOException
    • getNTFileAsString

      public static String getNTFileAsString(org.apache.sling.api.resource.Resource resource, String encoding) throws javax.jcr.RepositoryException, IOException
      Throws:
      javax.jcr.RepositoryException
      IOException