List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:org.rhq.core.domain.configuration.ObfuscatedPropertySimple.java
private void readObject(ObjectInputStream str) throws IOException, ClassNotFoundException { str.defaultReadObject(); initClearTextValue();//from www . j a va 2 s .c o m }
From source file:it.unibo.alchemist.model.implementations.actions.RunProtelisProgram.java
private void readObject(final ObjectInputStream stream) throws ClassNotFoundException, IOException { stream.defaultReadObject(); final AlchemistNetworkManager netmgr = new AlchemistNetworkManager(environment, node, reaction, this); node.addNetworkManger(this, netmgr); vm = new ProtelisVM(program, new AlchemistExecutionContext(environment, node, reaction, random, netmgr)); }
From source file:edu.cuny.jfree.chart.annotations.CategoryIntervalAnnotation.java
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); paint = SerialUtilities.readPaint(stream); stroke = SerialUtilities.readStroke(stream); }
From source file:org.grouplens.grapht.util.ClassProxy.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); classLoader = ClassLoaders.inferDefault(ClassProxy.class); }
From source file:org.wings.SAbstractLayoutManager.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { // preprocessing, e. g. serialize static vars or transient variables as cipher text in.defaultReadObject(); // default serialization // do postprocessing here }
From source file:com.swordlord.gozer.eventhandler.generic.GozerEventListenerList.java
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { listenerList = NULL_ARRAY;/*from www . j a va 2 s . c o m*/ s.defaultReadObject(); Object listenerTypeOrNull; while (null != (listenerTypeOrNull = s.readObject())) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); GozerEventListener l = (GozerEventListener) s.readObject(); add((Class<GozerEventListener>) Class.forName((String) listenerTypeOrNull, true, cl), l); } }
From source file:org.betaconceptframework.astroboa.security.AstroboaPasswordEncryptor.java
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { //Deserialize bean normally try {/*from www. ja v a2 s . co m*/ ois.defaultReadObject(); } catch (Exception e) { LoggerFactory.getLogger(getClass()).warn( "Exception thrown while deserializing password encryptor. Digester will be initialized the first time any of the AstroboaPasswordEncryptor method is called"); } }
From source file:edu.wisc.my.portlets.bookmarks.domain.Folder.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); final Object comparatorInfo = in.readObject(); if (comparatorInfo instanceof Comparator) { this.childComparator = this.castComparator(comparatorInfo); } else if (comparatorInfo instanceof Class && Comparator.class.isAssignableFrom((Class) comparatorInfo)) { try {//from w w w.ja v a 2s. co m final Object instance = ((Class) comparatorInfo).newInstance(); this.childComparator = this.castComparator(instance); } catch (InstantiationException e) { this.childComparator = DefaultBookmarksComparator.DEFAULT_BOOKMARKS_COMPARATOR; } catch (IllegalAccessException e) { this.childComparator = DefaultBookmarksComparator.DEFAULT_BOOKMARKS_COMPARATOR; } } else { this.childComparator = DefaultBookmarksComparator.DEFAULT_BOOKMARKS_COMPARATOR; } }
From source file:edu.scripps.fl.curves.plot.MyXYErrorRenderer.java
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); errorPaint = SerialUtilities.readPaint(stream); errorStroke = SerialUtilities.readStroke(stream); }
From source file:com.dianping.resource.io.util.ConcurrencyThrottleSupport.java
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { // Rely on default serialization, just initialize state after deserialization. ois.defaultReadObject(); // Initialize transient fields. this.logger = LogFactory.getLog(getClass()); this.monitor = new Object(); }