mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.6.4.1'
This commit is contained in:
@@ -24,6 +24,7 @@ public class Io_zip_compress_cmd__jre {
|
||||
public Io_zip_compress_cmd__jre Make_new() {return new Io_zip_compress_cmd__jre();}
|
||||
public byte Exec_hook(gplx.core.progs.Gfo_prog_ui prog_ui, Io_url[] src_urls, Io_url trg_url, String resume_name, long resume_file, long resume_item) {
|
||||
OutputStream trg_out_stream;
|
||||
Io_mgr.Instance.CreateDirIfAbsent(trg_url.OwnerDir());
|
||||
try {trg_out_stream = new FileOutputStream(trg_url.Xto_api());}
|
||||
catch (Exception e) {throw Err_.new_exc(e, "io", "trg open failed", "url", trg_url.Raw());}
|
||||
ZipOutputStream trg_stream = new ZipOutputStream(trg_out_stream);
|
||||
|
||||
@@ -37,6 +37,7 @@ public class Gftest {
|
||||
throw Err_.new_wo_type(bfr.To_str_and_clear());
|
||||
}
|
||||
}
|
||||
public static void Eq__str(String expd, byte[] actl) {Eq__str(expd, String_.new_u8(actl), null);}
|
||||
public static void Eq__str(String expd, String actl) {Eq__str(expd, actl, null);}
|
||||
public static void Eq__str(String expd, String actl, String msg_fmt, Object... msg_args) {
|
||||
if (String_.Eq(expd, actl)) return;
|
||||
@@ -64,6 +65,16 @@ public class Gftest {
|
||||
bfr.Add(Bry__line_end);
|
||||
throw Err_.new_wo_type(bfr.To_str_and_clear());
|
||||
}
|
||||
public static void Eq__bool_y(boolean actl) {Eq__bool(Bool_.Y, actl, null);}
|
||||
public static void Eq__bool(boolean expd, boolean actl) {Eq__bool(expd, actl, null);}
|
||||
public static void Eq__bool(boolean expd, boolean actl, String msg_fmt, Object... msg_args) {
|
||||
if (expd == actl) return;
|
||||
Write_fail_head(bfr, msg_fmt, msg_args);
|
||||
bfr.Add_str_a7("expd: ").Add_bool(expd).Add_byte_nl();
|
||||
bfr.Add_str_a7("actl: ").Add_bool(actl).Add_byte_nl();
|
||||
bfr.Add(Bry__line_end);
|
||||
throw Err_.new_wo_type(bfr.To_str_and_clear());
|
||||
}
|
||||
public static void Eq__double(double expd, double actl) {Eq__double(expd, actl, null);}
|
||||
public static void Eq__double(double expd, double actl, String msg_fmt, Object... msg_args) {
|
||||
if (expd == actl) return;
|
||||
|
||||
Reference in New Issue
Block a user