Example usage for java.io ObjectInputStream defaultReadObject

List of usage examples for java.io ObjectInputStream defaultReadObject

Introduction

In this page you can find the example usage for java.io ObjectInputStream defaultReadObject.

Prototype

public void defaultReadObject() throws IOException, ClassNotFoundException 

Source Link

Document

Read the non-static and non-transient fields of the current class from this stream.

Usage

From source file:Employee.java

private void readObject(ObjectInputStream ois) throws Exception {
    ois.defaultReadObject();
    salary += 100;/*from   ww w.  j a v  a  2s . co m*/
    System.out.println("Deserializing Employee object");
}

From source file:Main.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();

}

From source file:MainClass.java

private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    b = (String) stream.readObject();
}

From source file:com.thoughtworks.xstream.benchmark.cache.model.SerializableFive.java

private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
}

From source file:com.dataartisans.timeoutmonitoring.TimestampExtractorFunction.java

private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    formatter = DateTimeFormat.forPattern(pattern);
}

From source file:de.iew.framework.utils.IewApplicationEvent.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    source = in.readObject();//from w w  w  . j a  v a 2 s.c  o m
}

From source file:uno.informatics.data.pojo.PropertyHandler.java

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    propertyChangeSupport = new PropertyChangeSupport(this);
}

From source file:com.dataartisans.timeoutmonitoring.alert.JSONObjectAlertFunction.java

private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    ois.defaultReadObject();
    formatter = DateTimeFormat.forPattern(timestampPattern);
}

From source file:hr.fer.zemris.vhdllab.service.workspace.FileReport.java

private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    file.setProject(hierarchy.getProject());
}

From source file:org.vaadin.webinars.springandvaadin.serialization.SerializableUI.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();
    ConfigurableApplicationContext appContext = (ConfigurableApplicationContext) applicationContextHolder.get();
    BeanConfigurerSupport configurerSupport = new BeanConfigurerSupport();
    configurerSupport.setBeanFactory(appContext.getBeanFactory());
    configurerSupport.afterPropertiesSet();
    configurerSupport.configureBean(this);
    configurerSupport.destroy();//  w  ww. j  a  v a2 s .  c o  m
}