Class ResourceDataUtil


  • @ProviderType
    public class ResourceDataUtil
    extends Object
    • Constructor Detail

      • ResourceDataUtil

        public ResourceDataUtil()
    • 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.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