//
|
// Source code recreated from a .class file by IntelliJ IDEA
|
// (powered by FernFlower decompiler)
|
//
|
|
package org.jeecg.modules.doc.component;
|
|
|
import org.jeecg.modules.doc.vo.Previewer;
|
import org.jeecg.modules.doc.vo.ThumbImage;
|
import org.jeecg.modules.doc.util.UFOPUtils;
|
|
import java.io.File;
|
import java.io.FileInputStream;
|
import java.io.FileNotFoundException;
|
import java.io.InputStream;
|
|
public class LocalStoragePreviewer extends Previewer {
|
public LocalStoragePreviewer() {
|
}
|
|
public LocalStoragePreviewer(ThumbImage thumbImage) {
|
this.setThumbImage(thumbImage);
|
}
|
|
protected InputStream getInputStream(String fileUrl) {
|
File file = UFOPUtils.getLocalSaveFile(fileUrl);
|
InputStream inputStream = null;
|
|
try {
|
inputStream = new FileInputStream(file);
|
} catch (FileNotFoundException var5) {
|
var5.printStackTrace();
|
}
|
|
return inputStream;
|
}
|
}
|