public class DataEntryReaderFactory
extends java.lang.Object
| Constructor and Description |
|---|
DataEntryReaderFactory(boolean android,
boolean verbose)
Creates a new DataEntryReaderFactory.
|
| Modifier and Type | Method and Description |
|---|---|
proguard.io.DataEntryReader |
createDataEntryReader(java.lang.String messagePrefix,
ClassPathEntry classPathEntry,
proguard.io.DataEntryReader reader)
Creates a DataEntryReader that can read the given class path entry.
|
static java.util.List |
getFilterExcludingVersionedClasses(ClassPathEntry classPathEntry)
Method to return an augmented filter for supported features.
|
public DataEntryReaderFactory(boolean android,
boolean verbose)
android - Specifies whether the packaging is targeted at the
Android platform. Archives inside the assets directory
then aren't unpacked but simply read as data files.verbose - Specifies if verbose messages should be emitted when
creating the DataEntryReader.public proguard.io.DataEntryReader createDataEntryReader(java.lang.String messagePrefix,
ClassPathEntry classPathEntry,
proguard.io.DataEntryReader reader)
messagePrefix - a prefix for messages that are printed out (with System.out)classPathEntry - the input class path entry.reader - a data entry reader to which the reading of actual
classes and resource files can be delegated.public static java.util.List getFilterExcludingVersionedClasses(ClassPathEntry classPathEntry)
Currently versioned class files (a feature introduced in Java 9) are not fully supported by ProGuard. Only 1 version of a class can be read and processed. If no custom filter targeting a specific version is used, exclude such classes from being read.