FileDocCategorySizeDatePackage
PathHolder.javaAPI DocAndroid 5.1 API2641Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.util

PathHolder

public class PathHolder extends Object
Helper class used primarily for holding path on the device of different files arising in the dex class generation process.

Fields Summary
public static final String
DEX_FILE_EXTENSION
public static final String
JAR_FILE_EXTENSION
private final String
dirLocation
{@code non-null;} directory location of the dex-related files
private final String
fileNamePrefix
{@code non-null;} common file name prefix of the created files
Constructors Summary
public PathHolder(String dirLocation, String fileNamePrefix)
Creates an instance of {@code PathHolder} initialized with the directory location for storage of temporary files and common file name prefix for these files.

param
dirLocation {@code non-null;} path to directory used for storage of temporary files
param
fileNamePrefix {@code non-null;} common file name prefix across all the temporary files involved in the dex class generation and loading process


                                                                    
         
        if (dirLocation == null) {
            throw new NullPointerException("dirLocation == null");
        }
        if (fileNamePrefix == null) {
            throw new NullPointerException("fileNamePrefix == null");
        }

        this.dirLocation = dirLocation;
        this.fileNamePrefix = fileNamePrefix;
    
Methods Summary
public java.lang.StringgetDexFileName()

        return fileNamePrefix + DEX_FILE_EXTENSION;
    
public java.lang.StringgetDexFilePath()

        return dirLocation + File.separator + fileNamePrefix + DEX_FILE_EXTENSION;
    
public java.lang.StringgetDirLocation()

        return dirLocation;
    
public java.lang.StringgetFileName()

        return fileNamePrefix;
    
public java.lang.StringgetJarFileName()

        return fileNamePrefix + JAR_FILE_EXTENSION;
    
public java.lang.StringgetJarFilePath()

        return dirLocation + File.separator + fileNamePrefix + JAR_FILE_EXTENSION;