|
|
|
@ -7,6 +7,9 @@ import com.fr.stable.project.ProjectConstants;
|
|
|
|
|
import com.fr.workspace.server.entity.resource.ResourceBean; |
|
|
|
|
import com.fr.workspace.server.repository.resource.PublicResourceRepository; |
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayInputStream; |
|
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* DesignFileRepository |
|
|
|
@ -31,4 +34,9 @@ public class DesignFileRepository extends LocalFileRepository {
|
|
|
|
|
public FineFileEntry[] listEntry(String dir) { |
|
|
|
|
return PublicResourceRepository.getInstance().listEntry(new ResourceBean(dir)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public InputStream openStream(String path) { |
|
|
|
|
return new ByteArrayInputStream(PublicResourceRepository.getInstance().openStream(path)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|