hnOsmium0001

Untitled

Aug 23rd, 2020
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface DataFormat {
  2. Data parse(byte[] data);
  3. }
  4.  
  5. Map<int, DataFormat> id2format;
  6.  
  7. // 初始化:
  8. id2format.put(0, new DataFormatV0());
  9. id2format.put(1, new DataFormatV1());
  10.  
  11. // 解析数据:
  12. Data data = id2format.get(blob.versionId).parse(blob.data);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×