Here you can find the source of atob(final String str, final boolean def)
public static boolean atob(final String str, final boolean def)
//package com.java2s; public class Main { public static boolean atob(final String str, final boolean def) { try {//from w w w . j av a2 s .c om return Boolean.parseBoolean(str); } catch (final Exception ex) { ex.printStackTrace(); } return def; } }