|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.ide.common.packaging.PackagingUtils
public class PackagingUtils
Utility class for packaging.
| Field Summary | |
|---|---|
static com.google.common.collect.ImmutableList<java.lang.String> |
NON_RESOURCES_EXTENSIONS
Returns the list of file extensions that represents non resources files. |
static com.google.common.collect.ImmutableList<java.lang.String> |
NON_RESOURCES_FILENAMES
Return file names that are not resource files. |
| Constructor Summary | |
|---|---|
PackagingUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
checkFileForPackaging(java.lang.String fileName)
Checks a file to make sure it should be packaged as standard resources. |
static boolean |
checkFileForPackaging(java.lang.String fileName,
boolean allowClassFiles)
Checks a file to make sure it should be packaged as standard resources. |
static boolean |
checkFileForPackaging(java.lang.String fileName,
java.lang.String extension)
Checks a file to make sure it should be packaged as standard resources. |
static boolean |
checkFileForPackaging(java.lang.String fileName,
java.lang.String extension,
boolean allowClassFiles)
Checks a file to make sure it should be packaged as standard resources. |
static boolean |
checkFolderForPackaging(java.lang.String folderName)
Checks whether a folder and its content is valid for packaging into the .apk as standard Java resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final com.google.common.collect.ImmutableList<java.lang.String> NON_RESOURCES_EXTENSIONS
public static final com.google.common.collect.ImmutableList<java.lang.String> NON_RESOURCES_FILENAMES
| Constructor Detail |
|---|
public PackagingUtils()
| Method Detail |
|---|
public static boolean checkFolderForPackaging(@NonNull
java.lang.String folderName)
folderName - the name of the folder.
public static boolean checkFileForPackaging(@NonNull
java.lang.String fileName,
boolean allowClassFiles)
fileName - the name of the file (including extension)allowClassFiles - whether to allow java class files
public static boolean checkFileForPackaging(@NonNull
java.lang.String fileName)
fileName - the name of the file (including extension)
public static boolean checkFileForPackaging(@NonNull
java.lang.String fileName,
@NonNull
java.lang.String extension,
boolean allowClassFiles)
fileName - the name of the file (including extension)extension - the extension of the file (excluding '.')allowClassFiles - whether to allow java class files
public static boolean checkFileForPackaging(@NonNull
java.lang.String fileName,
@NonNull
java.lang.String extension)
fileName - the name of the file (including extension)extension - the extension of the file (excluding '.')
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||