01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.http.webclient.repository.modify.add;
07:
08: import java.io.IOException;
09: import java.io.InputStream;
10: import java.net.URL;
11:
12: /**
13: * @author Herko ter Horst
14: */
15: public class RDFURLUpload extends RDFUpload {
16:
17: private URL contents;
18:
19: public URL getContents() {
20: return contents;
21: }
22:
23: public void setContents(URL contents) {
24: this .contents = contents;
25: }
26:
27: @Override
28: public InputStream getInputStream() throws IOException {
29: return getContents().openStream();
30: }
31:
32: @Override
33: public String getI18n() {
34: return "repository.modify.add.url.success";
35: }
36: }
|