public List<Log_record> GetLog(access_level acc_level, Date begin_dat, Date end_dat)
    {
        String all_file = "";

        InputStream file_in = null;



        try {

            file_in = c.get("/var/log/sunprint/business/business.inf");

            byte[] buf = new byte[1024];

            int reded_buf_size = buf.length;



            while(reded_buf_size == buf.length)
            {
                try {

                    //StringReader sr = new StringWriter();

                    reded_buf_size = file_in.read(buf, 0, buf.length);

                    all_file += new String(buf,0,reded_buf_size);

                    System.out.println("= " + reded_buf_size);

                } catch (IOException e) {
                    e.printStackTrace();
                }

            }


            try {
                file_in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }

        } catch (SftpException e) {
            e.printStackTrace();
        }

        List<Log_record> out_list = new ArrayList<Log_record>();

        List<Log_record> from_file = Log_record.FileToRecords(all_file);

        for(Log_record lr : from_file)
            if(lr.GetDate().getTime() > begin_dat.getTime() && lr.GetDate().getTime() < end_dat.getTime() )
                out_list.add(lr);

        return out_list;
    }