Class ResourceResolverFactory.DefaultTempResourceResolver

  • All Implemented Interfaces:
    org.apache.xmlgraphics.io.TempResourceResolver
    Enclosing class:
    ResourceResolverFactory

    private static class ResourceResolverFactory.DefaultTempResourceResolver
    extends java.lang.Object
    implements org.apache.xmlgraphics.io.TempResourceResolver
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.io.File> tempFiles  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.io.File createTempFile​(java.lang.String path)  
      java.io.OutputStream getOutputStream​(java.lang.String id)
      org.apache.xmlgraphics.io.Resource getResource​(java.lang.String id)
      private java.io.File getTempFile​(java.lang.String uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tempFiles

        private final java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.io.File> tempFiles
    • Constructor Detail

      • DefaultTempResourceResolver

        private DefaultTempResourceResolver()
    • Method Detail

      • getTempFile

        private java.io.File getTempFile​(java.lang.String uri)
                                  throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • createTempFile

        private java.io.File createTempFile​(java.lang.String path)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getResource

        public org.apache.xmlgraphics.io.Resource getResource​(java.lang.String id)
                                                       throws java.io.IOException
        Specified by:
        getResource in interface org.apache.xmlgraphics.io.TempResourceResolver
        Throws:
        java.io.IOException
      • getOutputStream

        public java.io.OutputStream getOutputStream​(java.lang.String id)
                                             throws java.io.IOException
        Specified by:
        getOutputStream in interface org.apache.xmlgraphics.io.TempResourceResolver
        Throws:
        java.io.IOException