@Override public ExchangeAttribute build(final String token) { if (token.equals(DATE_TIME) || token.equals(DATE_TIME_SHORT)) { return DateTimeAttribute.INSTANCE; } if(token.startsWith(CUSTOM_TIME) && token.endsWith("}")) { return new DateTimeAttribute(token.substring(CUSTOM_TIME.length(), token.length() - 1)); } return null; }
protected ExchangeAttribute getLogElement(String token, PatternTokenizer tokenizer) throws IOException { if ("date".equals(token)) { return new DateTimeAttribute("yyyy-MM-dd", "GMT"); } else if ("time".equals(token)) { if (tokenizer.hasSubToken()) { return new DateTimeAttribute("HH:mm:ss", "GMT");
@Override public ExchangeAttribute build(final String token) { if (token.equals(DATE_TIME) || token.equals(DATE_TIME_SHORT)) { return DateTimeAttribute.INSTANCE; } if(token.startsWith(CUSTOM_TIME) && token.endsWith("}")) { return new DateTimeAttribute(token.substring(CUSTOM_TIME.length(), token.length() - 1)); } return null; }
@Override public ExchangeAttribute build(final String token) { if (token.equals(DATE_TIME) || token.equals(DATE_TIME_SHORT)) { return DateTimeAttribute.INSTANCE; } if(token.startsWith(CUSTOM_TIME) && token.endsWith("}")) { return new DateTimeAttribute(token.substring(CUSTOM_TIME.length(), token.length() - 1)); } return null; }
protected ExchangeAttribute getLogElement(String token, PatternTokenizer tokenizer) throws IOException { if ("date".equals(token)) { return new DateTimeAttribute("yyyy-MM-dd", "GMT"); } else if ("time".equals(token)) { if (tokenizer.hasSubToken()) { return new DateTimeAttribute("HH:mm:ss", "GMT");
protected ExchangeAttribute getLogElement(String token, PatternTokenizer tokenizer) throws IOException { if ("date".equals(token)) { return new DateTimeAttribute("yyyy-MM-dd", "GMT"); } else if ("time".equals(token)) { if (tokenizer.hasSubToken()) { return new DateTimeAttribute("HH:mm:ss", "GMT");