package ru.bitel.bgbilling.kernel.dyn.register;

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

import ru.bitel.bgbilling.kernel.integration.server.bean.RegisterHandler;
import ru.bitel.common.Utils;

public class SberOnlineTo1CRegisterHandler
    implements RegisterHandler
{
    @Override
    public byte[] preload( InputStream inputStream )
        throws IOException
    {
        String data = new String( Utils.readByBlock( inputStream ), "Cp1251" );
        
        return data.getBytes( "utf-8" );
    }
    
    class RecordData
    {
        String date = null;
        String title = null;
        String sum = null;;
    }
}
