Class CmdResult.DateResult

java.lang.Object
net.sf.basedb.opengrid.CmdResult<Date>
net.sf.basedb.opengrid.CmdResult.DateResult
Enclosing class:
CmdResult<R>

public static class CmdResult.DateResult extends CmdResult<Date>
An implementation that parses the 'stdout' to a date if the exit code is 0.
Since:
1.4
  • Field Details

  • Constructor Details

    • DateResult

      public DateResult(String cmd)
      Create a date result using the default date format.
      See Also:
    • DateResult

      public DateResult(String cmd, DateFormatter dateFormat)
      Create a date result using a custom date format.
  • Method Details

    • parseResult

      protected void parseResult()
      Description copied from class: CmdResult
      This method is called after the command has been executed and the exit code, stdout and stderr has been updated. Subclasses can override this method to take actions. The default implementation does nothing.
      Overrides:
      parseResult in class CmdResult<Date>