public NodeException(Node node, String msg) { super(node.toString() + (msg == null ? "" : ": " + msg)); this.node = node; }
public T findOpt(String include) throws IOException { List<T> found; found = find(include); switch (found.size()) { case 0: return null; case 1: return found.get(0); default: throw new IOException(toString() + ": ambiguous: " + include); } }
public Document parse(net.oneandone.sushi.fs.Node node) throws SAXException, IOException { InputSource src; try (InputStream stream = node.newInputStream()) { src = new InputSource(); src.setSystemId(node.toString()); src.setByteStream(stream); return parse(src); } }
public Object[] run(net.oneandone.sushi.fs.Node node) throws IOException { return run(node.toString(), node.newReader()); }
m = clz.getDeclaredMethod("newInstance", String.class, byte[].class, byte[].class, JSch.class); m.setAccessible(true); identity = (Identity) m.invoke(null, privateKey.toString(), Arrays.copyOf(bytes, bytes.length), null, jsch); } catch (InvocationTargetException e) { te = e.getTargetException();