public static Io_url Eval_url(Bry_fmtr_eval_mgr eval_mgr, byte[] fmt) { if (eval_mgr == null) return Io_url_.new_any_(String_.new_u8(fmt)); Bry_bfr bfr = Bry_bfr.reset_(255); Bry_fmtr fmtr = Bry_fmtr.tmp_(); fmtr.Eval_mgr_(eval_mgr).Fmt_(fmt).Bld_bfr_none(bfr); return Io_url_.new_any_(bfr.Xto_str_and_clear()); }
@Test public void Load_multiple_files() { fxt = new Io_line_rdr_fxt( Io_url_.new_fil_("mem/test0.txt"), Io_url_.new_fil_("mem/test1.txt"), Io_url_.new_fil_("mem/test2.txt")); fxt.File_lines_(0, 0, 3) .File_lines_(1, 3, 5) .File_lines_(2, 5, 9) .Load_len_(4) .tst_Read_til_lines(9, "00", "01", "02", "03", "04", "05", "06", "07", "08"); }
public void load_script(String file) { engine.Load_script(Io_url_.new_fil_(Xoscript_env.Resolve_file(Bool_.N, root_dir, file))); }
public Io_url ReadIoUrlOr(String k, Io_url or) { Object rv = ReadOr(k, or); if (rv == Nil) return or; return parse ? Io_url_.new_any_((String) rv) : Io_url_.cast(rv); }
public Io_url ReadIoUrl(String k) { Object rv = ReadOr(k, null); if (rv == Nil) ThrowNotFound(k); return parse ? Io_url_.new_any_((String) rv) : Io_url_.cast(rv); }
Io_fil file_(String url_str, String data) {return new Io_fil(Io_url_.mem_fil_(url_str), data);}
public void fil_absent(String url) {Tfds.Eq_false(Io_mgr.I.ExistsFil(Io_url_.mem_fil_(url)), "fil should not exist: {0}", url);}
public Io_fil reg_(String url, String... v) {return new Io_fil(Io_url_.mem_fil_(url), String_.Concat_lines_nl(v));}
public Db_mgr_fxt Init_fil(String url, String raw) { return Init_fil(Io_url_.new_fil_(url), raw); }
@Before public void init() { fxt = new Io_line_rdr_fxt(Io_url_.new_fil_("mem/test.txt")); fxt.Clear(); }