Package de.brendamour.jpasskit.signing
Class PKPassTemplateInMemory
- java.lang.Object
-
- de.brendamour.jpasskit.signing.PKPassTemplateInMemory
-
- All Implemented Interfaces:
IPKPassTemplate
public class PKPassTemplateInMemory extends java.lang.Object implements IPKPassTemplate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPK_BACKGROUNDstatic java.lang.StringPK_BACKGROUND_RETINAstatic java.lang.StringPK_BACKGROUND_RETINAHDstatic java.lang.StringPK_FOOTERstatic java.lang.StringPK_FOOTER_RETINAstatic java.lang.StringPK_FOOTER_RETINAHDstatic java.lang.StringPK_ICONstatic java.lang.StringPK_ICON_RETINAstatic java.lang.StringPK_ICON_RETINAHDstatic java.lang.StringPK_LOGOstatic java.lang.StringPK_LOGO_RETINAstatic java.lang.StringPK_LOGO_RETINAHDstatic java.lang.StringPK_PERSONALIZATION_LOGOstatic java.lang.StringPK_PERSONALIZATION_LOGO_RETINAstatic java.lang.StringPK_PERSONALIZATION_LOGO_RETINAHDstatic java.lang.StringPK_STRIPstatic java.lang.StringPK_STRIP_RETINAstatic java.lang.StringPK_STRIP_RETINAHDstatic java.lang.StringPK_THUMBNAILstatic java.lang.StringPK_THUMBNAIL_RETINAstatic java.lang.StringPK_THUMBNAIL_RETINAHD
-
Constructor Summary
Constructors Constructor Description PKPassTemplateInMemory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAllFiles(java.lang.String directoryWithFilesToAdd)voidaddFile(java.lang.String pathInTemplate, java.io.File file)voidaddFile(java.lang.String pathInTemplate, java.io.InputStream stream)voidaddFile(java.lang.String pathInTemplate, java.lang.CharSequence content)voidaddFile(java.lang.String pathInTemplate, java.net.URL contentURL)voidaddFile(java.lang.String pathInTemplate, java.util.Locale locale, java.io.File file)voidaddFile(java.lang.String pathInTemplate, java.util.Locale locale, java.io.InputStream stream)voidaddFile(java.lang.String pathInTemplate, java.util.Locale locale, java.lang.CharSequence content)voidaddFile(java.lang.String pathInTemplate, java.util.Locale locale, java.net.URL contentURL)java.util.Map<java.lang.String,java.nio.ByteBuffer>getAllFiles()java.util.Map<java.lang.String,java.io.InputStream>getFiles()Deprecated.voidprovisionPassAtDirectory(java.io.File tempPassDir)Prepare pass at directory with files included in this template
-
-
-
Field Detail
-
PK_ICON_RETINAHD
public static final java.lang.String PK_ICON_RETINAHD
- See Also:
- Constant Field Values
-
PK_ICON_RETINA
public static final java.lang.String PK_ICON_RETINA
- See Also:
- Constant Field Values
-
PK_ICON
public static final java.lang.String PK_ICON
- See Also:
- Constant Field Values
-
PK_LOGO_RETINAHD
public static final java.lang.String PK_LOGO_RETINAHD
- See Also:
- Constant Field Values
-
PK_LOGO_RETINA
public static final java.lang.String PK_LOGO_RETINA
- See Also:
- Constant Field Values
-
PK_LOGO
public static final java.lang.String PK_LOGO
- See Also:
- Constant Field Values
-
PK_THUMBNAIL_RETINAHD
public static final java.lang.String PK_THUMBNAIL_RETINAHD
- See Also:
- Constant Field Values
-
PK_THUMBNAIL_RETINA
public static final java.lang.String PK_THUMBNAIL_RETINA
- See Also:
- Constant Field Values
-
PK_THUMBNAIL
public static final java.lang.String PK_THUMBNAIL
- See Also:
- Constant Field Values
-
PK_STRIP_RETINAHD
public static final java.lang.String PK_STRIP_RETINAHD
- See Also:
- Constant Field Values
-
PK_STRIP_RETINA
public static final java.lang.String PK_STRIP_RETINA
- See Also:
- Constant Field Values
-
PK_STRIP
public static final java.lang.String PK_STRIP
- See Also:
- Constant Field Values
-
PK_BACKGROUND_RETINAHD
public static final java.lang.String PK_BACKGROUND_RETINAHD
- See Also:
- Constant Field Values
-
PK_BACKGROUND_RETINA
public static final java.lang.String PK_BACKGROUND_RETINA
- See Also:
- Constant Field Values
-
PK_BACKGROUND
public static final java.lang.String PK_BACKGROUND
- See Also:
- Constant Field Values
-
PK_FOOTER_RETINAHD
public static final java.lang.String PK_FOOTER_RETINAHD
- See Also:
- Constant Field Values
-
PK_FOOTER_RETINA
public static final java.lang.String PK_FOOTER_RETINA
- See Also:
- Constant Field Values
-
PK_FOOTER
public static final java.lang.String PK_FOOTER
- See Also:
- Constant Field Values
-
PK_PERSONALIZATION_LOGO_RETINAHD
public static final java.lang.String PK_PERSONALIZATION_LOGO_RETINAHD
- See Also:
- Constant Field Values
-
PK_PERSONALIZATION_LOGO_RETINA
public static final java.lang.String PK_PERSONALIZATION_LOGO_RETINA
- See Also:
- Constant Field Values
-
PK_PERSONALIZATION_LOGO
public static final java.lang.String PK_PERSONALIZATION_LOGO
- See Also:
- Constant Field Values
-
-
Method Detail
-
provisionPassAtDirectory
public void provisionPassAtDirectory(java.io.File tempPassDir) throws java.io.IOExceptionDescription copied from interface:IPKPassTemplatePrepare pass at directory with files included in this template- Specified by:
provisionPassAtDirectoryin interfaceIPKPassTemplate- 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:
getAllFilesin interfaceIPKPassTemplate
-
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.
-
-