Class PKPassTemplateInMemory

    • Constructor Detail

      • PKPassTemplateInMemory

        public PKPassTemplateInMemory()
    • Method Detail

      • provisionPassAtDirectory

        public void provisionPassAtDirectory​(java.io.File tempPassDir)
                                      throws java.io.IOException
        Description copied from interface: IPKPassTemplate
        Prepare pass at directory with files included in this template
        Specified by:
        provisionPassAtDirectory in interface IPKPassTemplate
        Parameters:
        tempPassDir - path to directory where temporary pass will be created
        Throws:
        java.io.IOException - if anything goes wrong while copying the files
      • getAllFiles

        public java.util.Map<java.lang.String,​java.nio.ByteBuffer> getAllFiles()
        Specified by:
        getAllFiles in interface IPKPassTemplate
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.io.InputStream stream)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.io.File file)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.lang.CharSequence content)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.net.URL contentURL)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.util.Locale locale,
                            java.io.File file)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.util.Locale locale,
                            java.io.InputStream stream)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.util.Locale locale,
                            java.lang.CharSequence content)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        public void addFile​(java.lang.String pathInTemplate,
                            java.util.Locale locale,
                            java.net.URL contentURL)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addAllFiles

        public void addAllFiles​(java.lang.String directoryWithFilesToAdd)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getFiles

        @Deprecated
        public java.util.Map<java.lang.String,​java.io.InputStream> getFiles()
        Deprecated.