Package net.sf.microlog.core.format.command

Examples of net.sf.microlog.core.format.command.NoFormatCommand


        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();
      }
View Full Code Here

TOP

Related Classes of net.sf.microlog.core.format.command.NoFormatCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.