List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:org.gatein.api.site.SiteImpl.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); PortalData data = (PortalData) in.readObject(); portalConfig = new PortalConfig(data); }
From source file:de.metas.ui.web.session.UserSession.java
private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); logger.trace("User session deserialized: {}", this); }
From source file:com.uber.hoodie.common.table.timeline.HoodieActiveTimeline.java
/** * This method is only used when this object is deserialized in a spark executor. * * @deprecated//www . ja v a2s. c o m */ private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.fs = FSUtils.getFs(); }
From source file:net.sf.jasperreports.charts.base.JRBaseBubblePlot.java
@SuppressWarnings("deprecation") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_0) { scaleTypeValue = ScaleTypeEnum.getByValue(scaleType); } else if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_7_2) { scaleTypeValue = ScaleTypeEnum.getByValue(scaleTypeInteger); scaleTypeInteger = null;//from w ww . j ava2 s .c o m } }
From source file:cc.redpen.config.Configuration.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); initTokenizer();// w w w . j av a2 s . co m }
From source file:com.phoenixst.collections.CartesianProduct.java
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { in.defaultReadObject(); if (left == null) { throw new InvalidObjectException("Left operand is null."); }//from w ww . java2s . co m if (right == null) { throw new InvalidObjectException("Right operand is null."); } }
From source file:jp.terasoluna.fw.web.thin.LimitedLock.java
/** * fVACY??(g)?B/*w w w . j a va 2s .co m*/ * <p> * fVACY?ARXgN^??l??AVACY/fVACYs\tB?[h??\z?B<br> * ?AX?[p?[NXSerializable?AVACY/fVACYgp???B * </p> * @param stream ObjectInputStream * @throws java.io.IOException * @throws ClassNotFoundException * @see ObjectInputStream */ private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, ClassNotFoundException { stream.defaultReadObject(); lock = new Object(); waitingThreadList = new LinkedList<Thread>(); }
From source file:org.intermine.common.swing.StandardJDialog.java
/** * Deserialisation method. Recreates the logger after this object has been read. * /*from w w w .j a v a2 s. c o m*/ * @param in The ObjectInputStream doing the reading. * * @throws ClassNotFoundException if the class of a deserialised object cannot * be found. * @throws IOException if there is a problem reading from the stream. * * @serialData Recreates the transient logger after deserialisation. */ private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { in.defaultReadObject(); logger = LogFactory.getLog(getClass()); }
From source file:org.apereo.portal.portlet.registry.PortletWindowData.java
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { //Read & validate non-transient fields ois.defaultReadObject(); if (this.portletWindowId == null) { throw new InvalidObjectException("portletWindowId can not be null"); }//from w w w . j av a2 s . co m if (this.portletEntityId == null) { throw new InvalidObjectException("portletEntityId can not be null"); } //Read & validate transient fields final String portletModeStr = (String) ois.readObject(); if (portletModeStr == null) { throw new InvalidObjectException("portletMode can not be null"); } this.portletMode = PortletUtils.getPortletMode(portletModeStr); final String windowStateStr = (String) ois.readObject(); if (windowStateStr == null) { throw new InvalidObjectException("windowState can not be null"); } this.windowState = PortletUtils.getWindowState(windowStateStr); }
From source file:it.unimi.di.big.mg4j.document.HtmlDocumentFactory.java
private void readObject(final ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); init();//from w ww.j a v a2s. co m }