com.codetaco.funnel.provider.VariableLengthSysinReader Maven / Gradle / Ivy
package com.codetaco.funnel.provider;
import java.io.IOException;
import java.text.ParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.codetaco.funnel.parameters.FunnelContext;
/**
*
* VariableLengthSysinReader class.
*
*
* @author Chris DeGreef [email protected]
*/
public class VariableLengthSysinReader extends VariableLengthCacheReader
{
static final private Logger _logger = LoggerFactory.getLogger(VariableLengthSysinReader.class);
/**
*
* Constructor for VariableLengthSysinReader.
*
*
* @param _context a {@link com.codetaco.funnel.parameters.FunnelContext}
* object.
* @throws java.io.IOException if any.
* @throws java.text.ParseException if any.
*/
public VariableLengthSysinReader(final FunnelContext _context) throws IOException, ParseException
{
super(_context);
logger.debug("variable length sysin reader activated");
}
@Override
void loadDataToCache() throws IOException
{
context.inputCache = new VariableLengthInputCache(context, System.in);
System.in.close();
_logger.debug("loaded SYSIN");
}
}