question: private void generateVectorDrawableResult ( VectorDrawable vector , String nextVectorName , boolean isLast , boolean isFirst ) throws IOException { CustomLogger . logError ( "generateVectorDrawableResult" + vector . getFileName ( ) + " islast==" + isLast ) ; if ( ! vectorAlreadyDefined . contains ( vector . getFileName ( ) ) ) { currentVectorFileName = vector . getFileName ( ) ; CustomLogger . logError ( "Generating the following file " + currentVectorFileName ) ; File vectorFile = new File ( drawableFolder , currentVectorFileName + ".xml" ) ; BufferedWriter vectorBW = createIt ( vectorFile ) ; CustomLogger . log ( "Generating the following file " + vectorFile . getAbsolutePath ( ) ) ; generateVectorDrawable ( vector , vectorBW , isLast ) ; vectorAlreadyDefined . add ( vector . getFileName ( ) ) ; vectorBW . flush ( ) ; vectorBW . close ( ) ; } if ( ! isLast ) { File animatedVectorFile = new File ( drawableFolder , animatedVector . replace ( "#fileName" , currentVectorFileName ) ) ; BufferedWriter animatedVectorBW = createIt ( animatedVectorFile ) ; CustomLogger . log ( "Generating the following file " + animatedVectorFile . getAbsolutePath ( ) ) ; CustomLogger . logError ( "----------->Generating the following file " + animatedVectorFile . getAbsolutePath ( ) + ", next VectorName=" + nextVectorName ) ; generateAnimatedVector ( vector , animatedVectorBW , nextVectorName , false ) ; generateAnimatorSet ( vector , false ) ; animatedVectorBW . flush ( ) ; animatedVectorBW . close ( ) ; } if ( ! isLast ) { File animatedVectorFile = new File ( drawableFolder , animatedVector . replace ( "#fileName" , currentVectorFileName + reverse ) ) ; BufferedWriter animatedVectorBW = createIt ( animatedVectorFile ) ; CustomLogger . log ( "Generating the following file " + animatedVectorFile . getAbsolutePath ( ) ) ; CustomLogger . logError ( "----------->Generating the following file " + animatedVectorFile . getAbsolutePath ( ) + ", next VectorName=" + nextVectorName ) ; generateAnimatedVector ( vector , animatedVectorBW , nextVectorName , true ) ; generateAnimatorSet ( vector , true ) ; animatedVectorBW . flush ( ) ; animatedVectorBW . close ( ) ; } }
target:  Generates the files associated with vector gave as parameters