protected class AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Conversion extends Object implements AndroidClassLoadingStrategy.DexProcessor.Conversion
AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.| Modifier | Constructor and Description |
|---|---|
protected |
Conversion(com.android.dx.dex.file.DexFile dexFile)
Creates a new ongoing to-dex-file conversion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drainTo(OutputStream outputStream)
Writes an Android dex file containing all registered Java classes to the provided output stream.
|
boolean |
equals(Object other) |
int |
hashCode() |
void |
register(String name,
byte[] binaryRepresentation)
Adds a Java class to the generated dex file.
|
protected Conversion(com.android.dx.dex.file.DexFile dexFile)
dexFile - The dex file that is created by this conversion.public void register(String name, byte[] binaryRepresentation)
AndroidClassLoadingStrategy.DexProcessor.Conversionregister in interface AndroidClassLoadingStrategy.DexProcessor.Conversionname - The binary name of the Java class.binaryRepresentation - The binary representation of this class.public void drainTo(OutputStream outputStream) throws IOException
AndroidClassLoadingStrategy.DexProcessor.ConversiondrainTo in interface AndroidClassLoadingStrategy.DexProcessor.ConversionoutputStream - The output stream to write the generated dex file to.IOException - If an error occurs while writing the file.Copyright © 2014–2017. All rights reserved.