Here you can find the source of deserializeTrailerString(String str, DataInputStream din)
private static void deserializeTrailerString(String str, DataInputStream din) throws IOException
//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*/ }