Subversion Repositories SmartDukaan

Rev

Rev 4214 | Rev 4802 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4214 Rev 4218
Line 255... Line 255...
255
     * @param fileNamePrefix    the string to be prefixed
255
     * @param fileNamePrefix    the string to be prefixed
256
     * @param fileName          the complete name of file
256
     * @param fileName          the complete name of file
257
     * @param fileNameSuffix    the string to be suffixed
257
     * @param fileNameSuffix    the string to be suffixed
258
     * @return the final file name
258
     * @return the final file name
259
     */
259
     */
260
    private String computeNewFileName(String fileNamePrefix, String fileName, String fileNameSuffix) {
260
    public static String computeNewFileName(String fileNamePrefix, String fileName, String fileNameSuffix) {
261
        String name = fileName.split(ESCAPED_DOT)[0];
261
        String name = fileName.split(ESCAPED_DOT)[0];
262
        String fileExt = fileName.split(ESCAPED_DOT)[1];
262
        String fileExt = fileName.split(ESCAPED_DOT)[1];
263
        return fileNamePrefix + HYPHON + name + HYPHON + fileNameSuffix + DOT + fileExt;
263
        return fileNamePrefix + HYPHON + name + HYPHON + fileNameSuffix + DOT + fileExt;
264
    }
264
    }
265
 
265