com.android.sdklib.build
Interface IArchiveBuilder
- All Known Implementing Classes:
- ApkBuilder
public interface IArchiveBuilder
Method Summary |
void |
addFile(java.io.File file,
java.lang.String archivePath)
Adds a file to the archive at a given path |
addFile
void addFile(java.io.File file,
java.lang.String archivePath)
throws ApkCreationException,
SealedApkException,
DuplicateFileException
- Adds a file to the archive at a given path
- Parameters:
file
- the file to addarchivePath
- the path of the file inside the APK archive.
- Throws:
ApkCreationException
- if an error occurred
SealedApkException
- if the APK is already sealed.
DuplicateFileException
- if a file conflicts with another already added to the APK
at the same location inside the APK archive.