com.android.ide.common.packaging
Class PackagingUtils

java.lang.Object
  extended by com.android.ide.common.packaging.PackagingUtils

public class PackagingUtils
extends java.lang.Object

Utility class for packaging.


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, java.lang.String extension)
          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
 

Constructor Detail

PackagingUtils

public PackagingUtils()
Method Detail

checkFolderForPackaging

public 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.

Parameters:
folderName - the name of the folder.
Returns:
true if the folder is valid for packaging.

checkFileForPackaging

public static boolean checkFileForPackaging(java.lang.String fileName)
Checks a file to make sure it should be packaged as standard resources.

Parameters:
fileName - the name of the file (including extension)
Returns:
true if the file should be packaged as standard java resources.

checkFileForPackaging

public static boolean checkFileForPackaging(java.lang.String fileName,
                                            java.lang.String extension)
Checks a file to make sure it should be packaged as standard resources.

Parameters:
fileName - the name of the file (including extension)
extension - the extension of the file (excluding '.')
Returns:
true if the file should be packaged as standard java resources.