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:
11: import org.springframework.web.multipart.MultipartFile;
12:
13: /**
14: * @author Herko ter Horst
15: */
16: public class RDFFileUpload extends RDFUpload {
17:
18: private MultipartFile contents;
19:
20: public MultipartFile getContents() {
21: return contents;
22: }
23:
24: public void setContents(MultipartFile contents) {
25: this .contents = contents;
26: }
27:
28: @Override
29: public InputStream getInputStream() throws IOException {
30: return getContents().getInputStream();
31: }
32:
33: @Override
34: public String getI18n() {
35: return "repository.modify.add.file.success";
36: }
37:
38: }
|