Examples of IHasTimestampPattern


Examples of net.sf.logsaw.core.logresource.IHasTimestampPattern

    Assert.isNotNull(visitor, "visitor"); //$NON-NLS-1$
    visitor.visit(this);
  }

  private String getTimestampPattern(ILogResource log) {
    IHasTimestampPattern  hasPattern = (IHasTimestampPattern) log.getDialect().getAdapter(IHasTimestampPattern.class);
    if ((hasPattern != null) && (hasPattern.getTimestampPattern() != null)) {
      // Use pattern from source
      return hasPattern.getTimestampPattern();
    }
    return utcDateFormatPattern;
  }
View Full Code Here

Examples of net.sf.logsaw.core.logresource.IHasTimestampPattern

    };
    return runnable.runWithIndexReader(log);
  }

  private boolean hasDateComponent(ILogResource log) {
    IHasTimestampPattern hasPattern =
        (IHasTimestampPattern) log.getDialect().getAdapter(IHasTimestampPattern.class);
    if ((hasPattern != null) && (hasPattern.getTimestampPattern() != null)) {
      return DateFormatUtils.hasDateComponent(hasPattern.getTimestampPattern());
    }
    return true;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.