com.android.dx.command.dexer.DxContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of builder Show documentation
Show all versions of builder Show documentation
Library to build Android applications.
package com.android.dx.command.dexer;
import com.android.dx.dex.cf.CodeStatistics;
import com.android.dx.dex.cf.OptimizerOptions;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
/**
* State used by a single invocation of {@link Main}.
*/
public class DxContext {
public final CodeStatistics codeStatistics = new CodeStatistics();
public final OptimizerOptions optimizerOptions = new OptimizerOptions();
public final PrintStream out;
public final PrintStream err;
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
final PrintStream noop = new PrintStream(new OutputStream() {
@Override
public void write(int b) throws IOException {
// noop;
}
});
public DxContext(OutputStream out, OutputStream err) {
this.out = new PrintStream(out);
this.err = new PrintStream(err);
}
public DxContext() {
this(System.out, System.err);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy