コード例 #1
0
 public boolean Mustache__write(String key, Mustache_bfr bfr) {
   if (String_.Eq(key, "path")) bfr.Add_bry(path);
   else if (String_.Eq(key, "path_enc"))
     bfr.Add_bry(gplx.langs.htmls.encoders.Gfo_url_encoder_.Href.Encode(path));
   else if (String_.Eq(key, "owner_dir_enc")) bfr.Add_bry(owner_dir_enc);
   else if (String_.Eq(key, "name")) bfr.Add_bry(name);
   else if (String_.Eq(key, "date")) bfr.Add_bry(date);
   else if (String_.Eq(key, "size")) bfr.Add_bry(size);
   else if (String_.Eq(key, "color")) bfr.Add_bry(color);
   else if (String_.Eq(key, "dir_cmd")) bfr.Add_bry(dir_cmd);
   else if (String_.Eq(key, "dir_cmd_arg")) {
     bfr.Add_str_u8("&dir_cmd=");
     bfr.Add_bry(dir_cmd);
   } else return false;
   return true;
 }
コード例 #2
0
 public Xow_import_doc(
     boolean is_dir,
     boolean is_core_xowa,
     int color,
     byte[] owner_dir,
     byte[] path,
     byte[] name,
     byte[] date,
     byte[] size,
     byte[] dir_cmd,
     Xow_import_doc[] subs) {
   this.is_dir = is_dir;
   this.is_core_xowa = is_core_xowa;
   this.color = color % 2 == 0 ? Byte_ascii.Num_0_bry : Byte_ascii.Num_1_bry;
   this.owner_dir_enc = gplx.langs.htmls.encoders.Gfo_url_encoder_.Href.Encode(owner_dir);
   this.path = path;
   this.name = name;
   this.date = date;
   this.size = size;
   this.dir_cmd = dir_cmd;
   this.subs = subs;
 }