|
6 | 6 | * %% |
7 | 7 | * Redistribution and use in source and binary forms, with or without |
8 | 8 | * modification, are permitted provided that the following conditions are met: |
9 | | - * |
| 9 | + * |
10 | 10 | * 1. Redistributions of source code must retain the above copyright notice, |
11 | 11 | * this list of conditions and the following disclaimer. |
12 | 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
13 | 13 | * this list of conditions and the following disclaimer in the documentation |
14 | 14 | * and/or other materials provided with the distribution. |
15 | | - * |
| 15 | + * |
16 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
17 | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
18 | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
26 | 26 | * POSSIBILITY OF SUCH DAMAGE. |
27 | 27 | * #L% |
28 | 28 | */ |
29 | | -/** |
30 | | - * Copyright (c) 2017, Stephan Saalfeld All rights reserved. |
31 | | - * <p> |
32 | | - * Redistribution and use in source and binary forms, with or without modification, are permitted |
33 | | - * provided that the following conditions are met: |
34 | | - * <p> |
35 | | - * 1. Redistributions of source code must retain the above copyright notice, this list of conditions |
36 | | - * and the following disclaimer. 2. Redistributions in binary form must reproduce the above |
37 | | - * copyright notice, this list of conditions and the following disclaimer in the documentation |
38 | | - * and/or other materials provided with the distribution. |
39 | | - * <p> |
40 | | - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR |
41 | | - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
42 | | - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
43 | | - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
44 | | - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
45 | | - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
46 | | - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY |
47 | | - * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
48 | | - */ |
49 | 29 | package org.janelia.saalfeldlab.n5; |
50 | 30 |
|
51 | 31 | import org.apache.commons.io.IOUtils; |
52 | 32 | import org.apache.commons.lang3.function.TriFunction; |
| 33 | +import org.janelia.saalfeldlab.n5.N5Exception.N5IOException; |
53 | 34 | import org.janelia.saalfeldlab.n5.http.ListResponseParser; |
54 | 35 |
|
55 | 36 | import java.io.Closeable; |
@@ -85,7 +66,7 @@ public class HttpKeyValueAccess implements KeyValueAccess { |
85 | 66 | /** |
86 | 67 | * Opens an {@link HttpKeyValueAccess} |
87 | 68 | * |
88 | | - * @throws N5Exception.N5IOException if the access could not be created |
| 69 | + * @throws N5IOException if the access could not be created |
89 | 70 | */ |
90 | 71 | public HttpKeyValueAccess() { |
91 | 72 |
|
@@ -296,7 +277,7 @@ private String[] queryListEntries(String normalPath, ListResponseParser parser, |
296 | 277 | final String listResponse = responseToString(http.getInputStream()); |
297 | 278 | return parser.parseListResponse(listResponse); |
298 | 279 | } catch (IOException e) { |
299 | | - throw new N5Exception.N5IOException("Error listing directory at " + normalPath, e); |
| 280 | + throw new N5IOException("Error listing directory at " + normalPath, e); |
300 | 281 | } |
301 | 282 | } |
302 | 283 |
|
@@ -324,7 +305,7 @@ private HttpURLConnection requireValidHttpResponse(String uri, String method, Tr |
324 | 305 | code = http.getResponseCode(); |
325 | 306 | responseMsg = http.getResponseMessage(); |
326 | 307 | } catch (IOException e) { |
327 | | - throw new N5Exception.N5IOException("Could not validate HTTP Response", e); |
| 308 | + throw new N5IOException("Could not validate HTTP Response", e); |
328 | 309 | } |
329 | 310 |
|
330 | 311 | final N5Exception cause = filterCode.apply(code, responseMsg, http); |
|
0 commit comments