525354555657585960
swift = new Swift(hpswiftCredentials); } catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new SwiftException(e); } container = uri.getHost(); }
6970717273747576777879
swift.putStream(container, key, in, md5Hash); } catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new SwiftException(e); } } finally { if (in != null) { try { in.close();
8990919293949596
swift.put(container, key, new byte[0]); } catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new SwiftException(e); } }
102103104105106107108109
return new FileMetadata(key,metadata.getLength(),metadata.getLastModified()); } catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new SwiftException(e); } }
114115116117118119120121
return swift.getS(container,key); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new SwiftException(e); } }
127128129130131132133134
return swift.getS(container,key,byteRangeStart); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new SwiftException(e); } }
182183184185186187188189
} catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } e.printStackTrace(); throw new SwiftException(e); } }
193194195196197198199200
swift.delete(container,key); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new SwiftException(e); } }
205206207208209210211212
swift.delete(container,srcKey); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new SwiftException(e); } }
222223224225226227228229
} } catch (Exception e) { if (e.getCause() instanceof IOException) { throw (IOException) e.getCause(); } throw new SwiftException(e); } }