List of usage examples for java.lang RuntimeException RuntimeException
public RuntimeException()
From source file:Main.java
public static byte[] base64_decode(String s) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); try {/*from www . j a v a 2 s . com*/ decode(s, bos); } catch (IOException e) { throw new RuntimeException(); } byte[] decodedBytes = bos.toByteArray(); try { bos.close(); bos = null; } catch (IOException ex) { System.err.println("Error while decoding BASE64: " + ex.toString()); } return decodedBytes; }
From source file:Main.java
/** * Wrapper over newCachedThreadPool. Thread names are formatted as prefix-ID, where ID is a * unique, sequentially assigned integer. * @param prefix (undocumented)/*from ww w . j a v a2 s . c o m*/ * @return (undocumented) */ static public java.util.concurrent.ThreadPoolExecutor newDaemonCachedThreadPool(java.lang.String prefix) { throw new RuntimeException(); }