Package proguard.io
Class FileSource
- java.lang.Object
-
- proguard.io.FileSource
-
- All Implemented Interfaces:
DataEntrySource
public class FileSource extends java.lang.Object implements DataEntrySource
This DataEntrySource wraps a single given file orDataEntry
.
-
-
Constructor Summary
Constructors Constructor Description FileSource(java.io.File file)
Creates a new FileSource.FileSource(java.io.File directory, java.io.File file)
Creates a new FileSource.FileSource(FileDataEntry fileDataEntry)
Creates a new FileSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
pumpDataEntries(DataEntryReader dataEntryReader)
Applies the given DataEntryReader to all data entries that the implementation can provide.
-
-
-
Constructor Detail
-
FileSource
public FileSource(java.io.File file)
Creates a new FileSource.- Parameters:
file
- the the absolute or relative location of the file.
-
FileSource
public FileSource(java.io.File directory, java.io.File file)
Creates a new FileSource.- Parameters:
directory
- the base directory for the file.file
- the the absolute or relative location of the file.
-
FileSource
public FileSource(FileDataEntry fileDataEntry)
Creates a new FileSource.- Parameters:
fileDataEntry
- the file data entry.
-
-
Method Detail
-
pumpDataEntries
public void pumpDataEntries(DataEntryReader dataEntryReader) throws java.io.IOException
Description copied from interface:DataEntrySource
Applies the given DataEntryReader to all data entries that the implementation can provide.- Specified by:
pumpDataEntries
in interfaceDataEntrySource
- Throws:
java.io.IOException
-
-