public class PKPassTemplateInMemory extends Object implements IPKPassTemplate
| Modifier and Type | Field and Description |
|---|---|
static String |
PK_BACKGROUND |
static String |
PK_BACKGROUND_RETINA |
static String |
PK_ICON |
static String |
PK_ICON_RETINA |
static String |
PK_LOGO |
static String |
PK_LOGO_RETINA |
static String |
PK_STRIP |
static String |
PK_STRIP_RETINA |
static String |
PK_THUMBNAIL |
static String |
PK_THUMBNAIL_RETINA |
| Constructor and Description |
|---|
PKPassTemplateInMemory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String pathInTemplate,
File file) |
void |
addFile(String pathInTemplate,
InputStream stream) |
void |
addFile(String pathInTemplate,
Locale locale,
File file) |
void |
addFile(String pathInTemplate,
Locale locale,
InputStream stream) |
void |
addFile(String pathInTemplate,
Locale locale,
StringBuffer content) |
void |
addFile(String pathInTemplate,
Locale locale,
URL contentURL) |
void |
addFile(String pathInTemplate,
StringBuffer content) |
void |
addFile(String pathInTemplate,
URL contentURL) |
Map<String,ByteBuffer> |
getAllFiles() |
Map<String,InputStream> |
getFiles() |
void |
provisionPassAtDirectory(File tempPassDir)
Prepare pass at directory with files included in this template
|
public static final String PK_ICON_RETINA
public static final String PK_ICON
public static final String PK_LOGO_RETINA
public static final String PK_LOGO
public static final String PK_THUMBNAIL_RETINA
public static final String PK_THUMBNAIL
public static final String PK_STRIP_RETINA
public static final String PK_STRIP
public static final String PK_BACKGROUND_RETINA
public static final String PK_BACKGROUND
public void provisionPassAtDirectory(File tempPassDir) throws IOException
IPKPassTemplateprovisionPassAtDirectory in interface IPKPassTemplatetempPassDir - path to directory where temporary pass will be createdIOException - if anything goes wrong while copying the filespublic Map<String,ByteBuffer> getAllFiles() throws IOException
getAllFiles in interface IPKPassTemplateIOExceptionpublic void addFile(String pathInTemplate, File file) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, InputStream stream) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, StringBuffer content) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, URL contentURL) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, File file) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, InputStream stream) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, StringBuffer content) throws IOException
IOExceptionpublic void addFile(String pathInTemplate, Locale locale, URL contentURL) throws IOException
IOExceptionpublic Map<String,InputStream> getFiles()
Copyright © 2012–2015. All rights reserved.