zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// 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;
    }
}