public class AptWriter extends Object
This class takes all files from the source directory and converts it to an APT repository in another directory. The target directory should be empty or not existing since it will overwrite everything with the name state from the source directory.
Here is what this class can do:
At the moment this class is still missing some functionality:
Constructor and Description |
---|
AptWriter(Configuration configuration,
org.vafer.jdeb.Console console) |
Modifier and Type | Method and Description |
---|---|
void |
build() |
static String |
digest(File file,
org.bouncycastle.crypto.Digest digest) |
protected Component |
findComponent(BinaryPackagePackagesFile cf)
Get the component that this package is assigned to
|
protected void |
processPackageFile(File packageFile) |
public AptWriter(Configuration configuration, org.vafer.jdeb.Console console)
protected void processPackageFile(File packageFile) throws Exception
Exception
protected Component findComponent(BinaryPackagePackagesFile cf)
Note: This method is called twice at the moment. It must return the same result for the same package data.
cf
- the package file data, may be null
null
if the package should be
ignoredpublic static String digest(File file, org.bouncycastle.crypto.Digest digest) throws IOException
IOException
Copyright © 2014. All rights reserved.