name.nkonev.r2dbc.migrate.reader.SpringResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of r2dbc-migrate-resource-reader-spring Show documentation
Show all versions of r2dbc-migrate-resource-reader-spring Show documentation
R2DBC Migrate Reader API Spring implementation
The newest version!
package name.nkonev.r2dbc.migrate.reader;
import java.io.IOException;
import java.io.InputStream;
public class SpringResource implements MigrateResource {
private final org.springframework.core.io.Resource springResource;
public SpringResource(org.springframework.core.io.Resource springResource) {
this.springResource = springResource;
}
@Override
public boolean isReadable() {
return springResource.isReadable();
}
@Override
public InputStream getInputStream() throws IOException {
return springResource.getInputStream();
}
@Override
public String getFilename() {
return springResource.getFilename();
}
@Override
public String toString() {
return springResource.toString();
}
}