case THROWABLE_CONVERSION_CHAR:
converterVector.addElement(new ThrowableFormatCommand());
break;
case PERCENT_CONVERSION_CHAR:
NoFormatCommand noFormatCommand = new NoFormatCommand();
noFormatCommand.init("%");
converterVector.addElement(noFormatCommand);
break;
default:
System.err.println("Unrecognized conversion character "
+ currentChar);
break;
}
currentIndex++;
} else {
int percentIndex = pattern.indexOf("%", currentIndex);
String noFormatString = "";
if (percentIndex != -1) {
noFormatString = pattern.substring(currentIndex,
percentIndex);
} else {
noFormatString = pattern.substring(currentIndex,
patternLength);
}
NoFormatCommand noFormatCommand = new NoFormatCommand();
noFormatCommand.init(noFormatString);
converterVector.addElement(noFormatCommand);
currentIndex = currentIndex + noFormatString.length();
}