Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.nio.ByteBuffer;
- import java.io.*;
- public class CharacterSerialization
- {
- public static void main(String[] args) throws IOException
- {
- DataInputStream dis= new DataInputStream(new FileInputStream("data3.dat"));
- byte[] theBytes = new byte[dis.available()];
- dis.read(theBytes, 0, dis.available());
- dis.close();
- ByteBuffer b = ByteBuffer.wrap(theBytes);
- kQ t = kQ.values()[b.get()];
- System.out.println(t.toString());
- bG bg = new bG();
- for (bQp v : t.vg())
- {
- bZO a = bg.a(v);
- a.f(b);
- int id = cNB.jdc[v.ordinal()];
- try {
- System.out.println(id);
- System.out.println(a.getClass().toString());
- System.out.println(a.toString());
- }
- catch (Exception e)
- {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement