Package proguard.io
Class FileSource
java.lang.Object
proguard.io.FileSource
- All Implemented Interfaces:
DataEntrySource
This DataEntrySource wraps a single given file or
DataEntry.-
Constructor Summary
ConstructorsConstructorDescriptionFileSource(File file) Creates a new FileSource.FileSource(File directory, File file) Creates a new FileSource.FileSource(FileDataEntry fileDataEntry) Creates a new FileSource. -
Method Summary
Modifier and TypeMethodDescriptionvoidpumpDataEntries(DataEntryReader dataEntryReader) Applies the given DataEntryReader to all data entries that the implementation can provide.
-
Constructor Details
-
FileSource
Creates a new FileSource.- Parameters:
file- the the absolute or relative location of the file.
-
FileSource
Creates a new FileSource.- Parameters:
directory- the base directory for the file.file- the the absolute or relative location of the file.
-
FileSource
Creates a new FileSource.- Parameters:
fileDataEntry- the file data entry.
-
-
Method Details
-
pumpDataEntries
Description copied from interface:DataEntrySourceApplies the given DataEntryReader to all data entries that the implementation can provide.- Specified by:
pumpDataEntriesin interfaceDataEntrySource- Throws:
IOException
-