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

edu.iris.dmc.seed.director.BlocketteDirector Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package edu.iris.dmc.seed.director;

import java.io.IOException;
import java.io.InputStream;

import edu.iris.dmc.seed.Blockette;
import edu.iris.dmc.seed.blockette.util.BlocketteItrator;
import edu.iris.dmc.seed.builder.Builder;
import edu.iris.dmc.seed.io.RecordInputStream;

public class BlocketteDirector {

	private Builder builder;

	public BlocketteDirector(Builder blocketteBuilder) {
		this.builder = blocketteBuilder;
	}

	public BlocketteItrator process(InputStream inputStream) throws IOException {
		//SeedRecordInputStream seedRecordInputStream = new SeedRecordInputStream(inputStream);
		RecordInputStream seedRecordInputStream = new RecordInputStream(inputStream);
		return new BlocketteItrator(seedRecordInputStream, builder);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy