List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:org.archive.crawler.reporting.CrawlerLoggerModule.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); getPath().getFile().mkdirs();/* ww w . j a va 2 s. c o m*/ this.atg = AlertThreadGroup.current(); this.setupLogs(); }
From source file:org.alfresco.web.bean.wcm.SetPermissionsDialog.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); userPermsDataModel = new ListDataModel(); userPermsDataModel.setWrappedData(userGroupPerms); }
From source file:blue.soundObject.tracker.TrackList.java
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); columnChangeListener = new TableModelListener() { public void tableChanged(TableModelEvent e) { TableModelEvent tme = new TableModelEvent(TrackList.this, TableModelEvent.HEADER_ROW); fireTableModelEvent(tme);//from w w w . j a v a 2 s . c om } }; for (Iterator it = tracks.iterator(); it.hasNext();) { Track t = (Track) it.next(); t.addTableModelListener(columnChangeListener); } }
From source file:com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.java
/** * Our own serialization (to handle the weak reference) * @param in the stream to read form/* w w w . j a va 2 s. c om*/ * @throws IOException in case of error * @throws ClassNotFoundException in case of error */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // we do not store the jobs (at the moment) scheduledJobsQ_ = new PriorityQueue<>(); cancelledJobs_ = new ArrayList<>(); currentlyRunningJob_ = null; }
From source file:utilities.datastructures.multimap.MyMultiValueMap.java
/** * Read the map in using a custom routine. * //from www. j a va 2 s .com * @param in * the input stream * @throws IOException * @throws ClassNotFoundException * @since 4.0 */ @SuppressWarnings("unchecked") // (1) should only fail if input stream is incorrect private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.map = (Map<K, Collection<V>>) in.readObject(); // (1) }
From source file:net.sf.maltcms.chromaui.annotations.XYSelectableShapeAnnotation.java
/** * Provides serialization support./* w w w . j a va2 s. co m*/ * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.s = SerialUtilities.readShape(stream); this.stroke = SerialUtilities.readStroke(stream); this.outline = SerialUtilities.readPaint(stream); this.highlight = SerialUtilities.readPaint(stream); this.active = stream.readBoolean(); }
From source file:org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.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()); }
From source file:MersenneTwister.java
private synchronized void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { // just so we're synchronized. in.defaultReadObject(); }
From source file:com.jpeterson.littles3.bo.Acp.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // initialize transient variable(s) init();//from w w w . jav a2 s .co m }
From source file:org.apache.hadoop.yarn.sls.web.SLSWebApp.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); handleOperTimecostHistogramMap = new HashMap<>(); queueAllocatedMemoryCounterMap = new HashMap<>(); queueAllocatedVCoresCounterMap = new HashMap<>(); }