Code example for ObjectInputStream

Methods: readIntreadObject

0
 
    private void readObject( 
        ObjectInputStream   in)
        throws IOException, ClassNotFoundException 
    { 
        this.y = (BigInteger)in.readObject();
        this.dhSpec = new DHParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), in.readInt());
    } 
 
    private void writeObject( 
        ObjectOutputStream  out)
        throws IOException 
    { 
        out.writeObject(this.getY());
        out.writeObject(dhSpec.getP());
        out.writeObject(dhSpec.getG());
        out.writeInt(dhSpec.getL());
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE