public String getResourceFilename ( ) { switch ( resourceType ) { case ANDROID_ASSETS : return assetPath . substring ( assetPath . lastIndexOf ( File . separator ) + 1 ) ; case ANDROID_RESOURCE : return resourceFilePath . substring ( resourceFilePath . lastIndexOf ( File . separator ) + 1 ) ; case LINUX_FILESYSTEM : return filePath . substring ( filePath . lastIndexOf ( File . separator ) + 1 ) ; case NETWORK : return url . getPath ( ) . substring ( url . getPath ( ) . lastIndexOf ( "/" ) + 1 ) ; case INPUT_STREAM : return inputStreamName ; default : return null ; } }
Returns the filename of the resource with extension .