6364656667686970717273
istream = new BufferedInputStream(istream, 8192); } return addConfigDescriptor(descriptorResource, istream); } catch (IOException e) { throw new ConfigException(e); } finally { if (istream != null) { try { istream.close(); } catch (IOException e) {
5455565758596061
assertFile(); try { return StreamUtil.readBytes(getInputStream(), true).toByteArray(); } catch (IOException e) { throw new ConfigException(e); } }
6465666768697071
assertFile(); try { return channel.get(getURI().getPath()); } catch (SftpException e) { throw new ConfigException(e); } }
7475767778798081
assertFile(); try { return channel.put(getURI().getPath()); } catch (SftpException e) { throw new ConfigException(e); } }
102103104105106107108109110111112
List entries; try { entries = channel.ls(getURI().getPath()); } catch (SftpException e) { throw new ConfigException(e); } List result = new ArrayList(entries.size()); for (Iterator i = entries.iterator(); i.hasNext();) {
7071727374757677
return new SshResource(this, channel, uri, stat); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new ConfigException(e); } }
143144145146147148149150151152153
// �ɹ���������Ա����ظ���ʾ�������� ResourceContext.get().getVisitedURIs().remove(new ResourceKey(new ResourceURI(uri.getURI()))); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new ConfigException(e); } finally { ResourceContext.get().setCurrentURI(null); } } }
4950515253545556
public byte[] getContent() { try { return StreamUtil.readBytes(getInputStream(), true).toByteArray(); } catch (IOException e) { throw new ConfigException(e); } }
5051525354555657
digester.push(new ConfigDescriptor(descriptorResource)); try { return (ConfigDescriptor) digester.parse(istream); } catch (Exception e) { throw new ConfigException("Failed to load config descriptor: " + descriptorResource.getURL(), e); } }
122123124125126127128129130131132
InputStream istream = getClass().getResourceAsStream("validators.xml"); try { digester.push(digester.parse(istream)); } catch (Exception e) { throw new ConfigException("Failed to load validators", e); } finally { if (istream != null) { try { istream.close(); } catch (IOException e) {