Package proguard.resources.file
Class ResourceFile
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.util.SimpleFeatureNamedProcessable
-
- proguard.resources.file.ResourceFile
-
- All Implemented Interfaces:
java.io.Serializable
,FeatureNamed
,Processable
- Direct Known Subclasses:
KotlinModule
public class ResourceFile extends SimpleFeatureNamedProcessable
Representation of a resource file in an application.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
fileName
long
fileSize
java.util.Set<ResourceJavaReference>
references
-
Fields inherited from class proguard.util.SimpleFeatureNamedProcessable
extraFeatureNames, featureName
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description ResourceFile(java.lang.String fileName, long fileSize)
Creates a newResourceFile
.ResourceFile(java.lang.String fileName, long fileSize, int processingFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ResourceFileVisitor resourceFileVisitor)
java.lang.String
getFileName()
Returns the file name.long
getFileSize()
Returns the file size.java.lang.String
toString()
-
Methods inherited from class proguard.util.SimpleFeatureNamedProcessable
addExtraFeatureName, getExtraFeatureNames, getFeatureName, isInFeature, setFeatureName
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
fileName
public java.lang.String fileName
-
fileSize
public long fileSize
-
references
public java.util.Set<ResourceJavaReference> references
-
-
Constructor Detail
-
ResourceFile
public ResourceFile(java.lang.String fileName, long fileSize)
Creates a newResourceFile
.- Parameters:
fileName
- the name of the resource file.fileSize
- the size of the resource file.
-
ResourceFile
public ResourceFile(java.lang.String fileName, long fileSize, int processingFlags)
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
Returns the file name.
-
getFileSize
public long getFileSize()
Returns the file size.
-
accept
public void accept(ResourceFileVisitor resourceFileVisitor)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-