org.xbill.DNS
Class TTL
java.lang.Object
|
+--org.xbill.DNS.TTL
- public final class TTL
- extends Object
Routines for parsing BIND-style TTL values. These values consist of
numbers followed by 1 letter units of time (W - week, D - day, H - hour,
M - minute, S - second).
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
parseTTL
public static int parseTTL(String s)
throws NumberFormatException
- Parses a BIND-stype TTL
- Returns:
- The TTL as a number of seconds
format
public static String format(int ttl)
main
public static void main(String[] args)