Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. import java.nio.ByteBuffer;
  2. import java.io.*;
  3.  
  4. public class CharacterSerialization
  5. {
  6.     public static void main(String[] args) throws IOException
  7.     {
  8.         DataInputStream dis= new DataInputStream(new FileInputStream("data3.dat"));
  9.         byte[] theBytes = new byte[dis.available()];
  10.         dis.read(theBytes, 0, dis.available());
  11.         dis.close();
  12.  
  13.         ByteBuffer b = ByteBuffer.wrap(theBytes);
  14.        
  15.         kQ t  = kQ.values()[b.get()];
  16.         System.out.println(t.toString());
  17.         bG bg = new bG();
  18.         for (bQp v : t.vg())
  19.         {
  20.             bZO a = bg.a(v);
  21.             a.f(b);
  22.             int id = cNB.jdc[v.ordinal()];
  23.             try {
  24.                 System.out.println(id);
  25.                 System.out.println(a.getClass().toString());
  26.                 System.out.println(a.toString());
  27.             }
  28.             catch (Exception e)
  29.             {
  30.                
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement