Java DataInputStream to Object deserializeTrailerString(String str, DataInputStream din)

Here you can find the source of deserializeTrailerString(String str, DataInputStream din)

Description

deserialize Trailer String

License

Open Source License

Declaration

private static void deserializeTrailerString(String str, DataInputStream din) throws IOException 

Method Source Code


//package com.java2s;
import java.io.*;

public class Main {
    private static void deserializeTrailerString(String str, DataInputStream din) throws IOException {
        String s2 = din.readUTF();
        if (!s2.equals("]"))
            throw new IOException("bogus serialization trailer");
    }/*ww  w. j  a v a 2 s. co m*/
}

Related

  1. deserialiseByteArrayArray(DataInputStream is, int max_length)
  2. deserialiseLength(DataInputStream is, int max_length)
  3. deserializeInt(DataInputStream din)
  4. deserializeIntArray(DataInputStream in)
  5. deserializeString(DataInputStream din)