Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@128790 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c9ce3ca7fa
commit
fbd394f4e2
|
@ -79,7 +79,7 @@ public class RetrieveChartFileServlet extends HttpServlet {
|
|||
}
|
||||
|
||||
FilesStorage storage = new FilesStorage();
|
||||
InputStream in = storage.retrieveImputStream(uri);
|
||||
InputStream in = storage.retrieveInputStream(uri);
|
||||
OutputStream out = response.getOutputStream();
|
||||
|
||||
response.setContentType(IMAGE_MIME_TYPE);
|
||||
|
|
|
@ -75,7 +75,7 @@ public class RetrieveFileAndDiscoverMimeTypeServlet extends HttpServlet {
|
|||
/*
|
||||
|
||||
FilesStorage storage = new FilesStorage();
|
||||
InputStream inMime = storage.retrieveImputStream(uri);
|
||||
InputStream inMime = storage.retrieveInputStream(uri);
|
||||
|
||||
|
||||
TikaConfig tika = new TikaConfig();
|
||||
|
@ -102,7 +102,7 @@ public class RetrieveFileAndDiscoverMimeTypeServlet extends HttpServlet {
|
|||
|
||||
}
|
||||
|
||||
InputStream in = storage.retrieveImputStream(uri);
|
||||
InputStream in = storage.retrieveInputStream(uri);
|
||||
|
||||
OutputStream out = response.getOutputStream();
|
||||
|
||||
|
|
|
@ -4338,7 +4338,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
|
||||
try {
|
||||
FilesStorage filesStorage = new FilesStorage();
|
||||
InputStream is = filesStorage.retriveImputStream(
|
||||
InputStream is = filesStorage.retriveInputStream(
|
||||
aslSession.getUsername(), wi);
|
||||
|
||||
FileUtil.setImportFileCSV(fileUploadSession, is, wi.getName(),
|
||||
|
@ -8171,7 +8171,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
|
||||
try {
|
||||
FilesStorage filesStorage = new FilesStorage();
|
||||
InputStream is = filesStorage.retriveImputStream(
|
||||
InputStream is = filesStorage.retriveInputStream(
|
||||
aslSession.getUsername(), wi);
|
||||
|
||||
FileUtil.setImportFileCodelistMapping(fileUploadSession, is,
|
||||
|
|
|
@ -174,7 +174,7 @@ public class FilesStorage {
|
|||
* @return InputStream back to read the file
|
||||
* @throws TDGWTServiceException
|
||||
*/
|
||||
public InputStream retriveImputStream(String user, WorkspaceItem wi)
|
||||
public InputStream retriveInputStream(String user, WorkspaceItem wi)
|
||||
throws TDGWTServiceException {
|
||||
InputStream is = null;
|
||||
try {
|
||||
|
@ -219,7 +219,7 @@ public class FilesStorage {
|
|||
* @return InputStream back to read the file
|
||||
* @throws TDGWTServiceException
|
||||
*/
|
||||
public InputStream retrieveImputStream(String uri)
|
||||
public InputStream retrieveInputStream(String uri)
|
||||
throws TDGWTServiceException {
|
||||
InputStream is = null;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue