All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gridgo.connector.file.support.engines.SimpleFileConsumerEngine Maven / Gradle / Ivy

There is a newer version: 0.8.1
Show newest version
package io.gridgo.connector.file.support.engines;

import io.gridgo.connector.file.FileConsumer;

public class SimpleFileConsumerEngine implements FileConsumerEngine {

	private FileConsumer fileConsumer;

	public SimpleFileConsumerEngine(FileConsumer fileConsumer) {
		this.fileConsumer = fileConsumer;
	}

	@Override
	public void readAndPublish() {
		throw new UnsupportedOperationException("Non-length-prepended mode is not supported for FileConsumer");
	}

	@Override
	public String getFormat() {
		return this.fileConsumer.getFormat();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy