![JAR search and dependency download from the Maven repository](/logo.png)
framework.storage.FileStorageNone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
jishi series products framework on java
package framework.storage;
import java.io.IOException;
import java.io.InputStream;
/**
* 未启用的 NONE
*/
public class FileStorageNone implements FileStorage {
@Override
public boolean enable() {
return false;
}
@Override
public long save(InputStream inputStream, String filePath, boolean compression) throws IOException {
throw new NoEnableFileStorageException("Not enable file storage, you can config sys.file.storage-type");
}
@Override
public InputStream getStream(String filePath, boolean compression) throws IOException {
throw new NoEnableFileStorageException("Not enable file storage, you can config sys.file.storage-type");
}
@Override
public void delete(String filePath, boolean compression) throws IOException {
throw new NoEnableFileStorageException("Not enable file storage, you can config sys.file.storage-type");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy