com.documents4j.adapter.NoopFileConsumer Maven / Gradle / Ivy
package com.documents4j.adapter;
import com.documents4j.api.IFileConsumer;
import com.google.common.base.Objects;
import java.io.File;
class NoopFileConsumer implements IFileConsumer {
private static final NoopFileConsumer INSTANCE = new NoopFileConsumer();
private NoopFileConsumer() {
/* empty */
}
public static IFileConsumer getInstance() {
return INSTANCE;
}
@Override
public void onComplete(File file) {
/* do nothing */
}
@Override
public void onCancel(File file) {
/* do nothing */
}
@Override
public void onException(File file, Exception e) {
/* do nothing */
}
@Override
public String toString() {
return Objects.toStringHelper(NoopFileConsumer.class)
.addValue("")
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy