private boolean overridesToString(Object object) { try { Class<?> type = object.getClass(); Method toString = type.getMethod("toString"); return toString.getDeclaringClass() != Object.class; } catch (SecurityException ex) { throw Throw.exception(ex); } catch (NoSuchMethodException ex) { throw Throw.exception(ex); } }
public T create(Object obj1, Object obj2, Object obj3) { try { return takeThree.newInstance(obj1, obj2, obj3); } catch (Exception ex) { throw Throw.exception(ex); } }
public T create(Object obj) { try { return takeOne.newInstance(obj); } catch (Exception ex) { throw Throw.exception(ex); } }
public final PrintOn append(CharSequence string, int start, int end) { try { buf.append(string, start, end); } catch (IOException ex) { throw Throw.exception(ex); } return this; }
public final PrintOn append(char c) { try { buf.append(c); } catch (IOException ex) { throw Throw.exception(ex); } return this; }
public final void close() { if (buf instanceof Closeable) { try { ((Closeable) buf).close(); } catch (IOException ex) { throw Throw.exception(ex); } } }