public static String pad(String orignalValue, char padChar, int length, boolean isLeft) {
		//null作为空字符串
		if(null == orignalValue) {
			orignalValue = "";
		}

		//判断长度是否比需要的长度短，只有在短的情况下才会进行处理
		int oldLen = orignalValue.length();
		if(oldLen >= length) {
			return orignalValue;
		} else {
			int padLen = length - oldLen;
			//得到需要添加的字符
			char[] appendChars = new char[padLen];
			Arrays.fill(appendChars, padChar);

			char[] newChars = new char[length];
			char[] orignalChars = orignalValue.toCharArray();
			if(isLeft) {
				System.arraycopy(appendChars, 0, newChars, 0, padLen);
				System.arraycopy(orignalChars, 0, newChars, padLen, oldLen);
			} else {
				System.arraycopy(orignalChars, 0, newChars, 0, oldLen);
				System.arraycopy(appendChars, 0, newChars, oldLen, padLen);
			}

			return new String(newChars);
		}
	}