org.usc.file.operater.rules
类 SmallToBigConvertRule

java.lang.Object
  继承者 org.usc.file.operater.rules.SmallToBigConvertRule
所有已实现的接口:
ConvertRule

public class SmallToBigConvertRule
extends Object
implements ConvertRule

小写转大写规则

作者:
ShunLi

构造方法摘要
SmallToBigConvertRule()
           
 
方法摘要
static String format(String num)
           
static String formatDecnum(String num)
           
static String formatLong(Long num)
          将阿拉伯整数数字翻译为汉语小写数字。
static String formatLongLess10000(Long num)
          将小于一万的整数转换为中文汉语小写
static String parseString(String oldName)
           
 String reNameByRule(String oldName)
           
 String reNameByRule(String oldName, String fix, String newFix)
           
 String reNameByRule(String oldName, String fix, String newFix, Boolean isFolder)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SmallToBigConvertRule

public SmallToBigConvertRule()
方法详细信息

format

public static String format(String num)

formatLong

public static String formatLong(Long num)
将阿拉伯整数数字翻译为汉语小写数字。 其核心思想是按照中文的读法,从后往前每四个数字为一组。每一组最后要加上对应的单位,分别为万、亿等。 每一组中从后往前每个数字后面加上对应的单位,分别为个十百千。 每一组中如果出现零千、零百、零十的情况下去掉单位。 每组中若出现多个连续的零,则通读为一个零。 若每一组中若零位于开始或结尾的位置,则不读。

参数:
num -
返回:

formatLongLess10000

public static String formatLongLess10000(Long num)
将小于一万的整数转换为中文汉语小写

参数:
num -
返回:

formatDecnum

public static String formatDecnum(String num)

parseString

public static String parseString(String oldName)

reNameByRule

public String reNameByRule(String oldName)
指定者:
接口 ConvertRule 中的 reNameByRule

reNameByRule

public String reNameByRule(String oldName,
                           String fix,
                           String newFix)
指定者:
接口 ConvertRule 中的 reNameByRule

reNameByRule

public String reNameByRule(String oldName,
                           String fix,
                           String newFix,
                           Boolean isFolder)
指定者:
接口 ConvertRule 中的 reNameByRule


Copyright © 2011. All Rights Reserved.