FileDocCategorySizeDatePackage
FolderPathElement.javaAPI DocAndroid 5.1 API1824Thu Mar 12 22:18:30 GMT 2015com.android.multidex

FolderPathElement

public class FolderPathElement extends Object implements ClassPathElement
A folder element.

Fields Summary
private File
baseFolder
Constructors Summary
public FolderPathElement(File baseFolder)

        this.baseFolder = baseFolder;
    
Methods Summary
public voidclose()

    
private voidcollect(java.io.File folder, java.lang.String prefix, java.util.ArrayList result)

        for (File file : folder.listFiles()) {
            if (file.isDirectory()) {
                collect(file, prefix + SEPARATOR_CHAR + file.getName(), result);
            } else {
                result.add(prefix + SEPARATOR_CHAR + file.getName());
            }
        }
    
public java.lang.Iterablelist()

        ArrayList<String> result = new ArrayList<String>();
        collect(baseFolder, "", result);
        return result;
    
public java.io.InputStreamopen(java.lang.String path)

        return new FileInputStream(new File(baseFolder,
                path.replace(SEPARATOR_CHAR, File.separatorChar)));