public class CronParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
parseHours(String cronTabHours)
This method parses the "hours" of a cron tab and generates a byte array
of all viable hours.
|
static byte[] |
parseMinutes(String cronTabMinutes)
This method parses the "minutes" of a cron tab and generates a byte array
of all viable minutes.
|
static byte[] |
parseMonthDays(String cronTabMonthDays)
This method parses the "days" of a cron tab and generates a byte array of
all viable month days.
|
static byte[] |
parseMonths(String cronTabMonths,
byte[] monthDays,
byte[] weekDays)
This method parses the "months" of a cron tab and generates a byte array
of all viable months.
|
static byte[] |
parseWeekDays(String cronTabWeekDays)
This method parses the "week days" of a cron tab and generates a byte
array of all viable week days, converting any 7 to a 0 to enforce the
range of 0-6 even tough 1-7 is also viable.
|
public static byte[] parseMinutes(String cronTabMinutes) throws IllegalArgumentException
cronTabMinutes - the cron tab minutes fieldIllegalArgumentException - thrown when the cron tab is of an
illegal formatpublic static byte[] parseHours(String cronTabHours) throws IllegalArgumentException
cronTabHours - the cron tab hours fieldIllegalArgumentException - thrown when the cron tab is of an
illegal formatpublic static byte[] parseMonthDays(String cronTabMonthDays) throws IllegalArgumentException
cronTabMonthDays - the cron tab days fieldIllegalArgumentException - thrown when the cron tab is of an
illegal formatpublic static byte[] parseWeekDays(String cronTabWeekDays) throws IllegalArgumentException
cronTabWeekDays - the cron tab week days fieldIllegalArgumentException - thrown when the cron tab is of an
illegal formatpublic static byte[] parseMonths(String cronTabMonths, byte[] monthDays, byte[] weekDays) throws IllegalArgumentException
cronTabMonths - the cron tab months fieldmonthDays - month days that have been parsed from the same cron tabweekDays - week days that have been parsed from the same cron tabIllegalArgumentException - thrown when the cron tab is of an
illegal formatCopyright © 2017–2019. All rights reserved.