List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:org.geoserver.importer.RemoteData.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); GeoServerSecurityManager manager = GeoServerExtensions.bean(GeoServerSecurityManager.class); this.password = manager.getConfigPasswordEncryptionHelper().decode(this.password); }
From source file:com.phoenixst.plexus.util.UnmodifiableGraph.java
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { in.defaultReadObject(); if (delegate == null) { throw new InvalidObjectException("Wrapped Graph is null."); }// w ww . j a v a 2 s .c o m initialize(); }
From source file:net.sf.jasperreports.charts.util.JRMeterInterval.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_3) { alphaDouble = new Double(alpha); }//w w w . j a v a 2s .c om }
From source file:org.ajax4jsf.application.AjaxStateHolder.java
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); }
From source file:com.hp.autonomy.hod.client.api.textindex.query.search.Document.java
private void readObject(final ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException { objectInputStream.defaultReadObject(); fields = new HashMap<>(); final int fieldCount = objectInputStream.readInt(); for (int i = 0; i < fieldCount; i++) { final String fieldName = (String) objectInputStream.readObject(); final Serializable value = (Serializable) objectInputStream.readObject(); fields.put(fieldName, value);// ww w . j a v a 2 s. c o m } // For backwards compatibility of serialized form if (promotionType == null) { promotionType = PromotionType.NONE; } }
From source file:org.terasoluna.gfw.common.message.ResultMessage.java
/** * special handling for the serialization and deserialization process * @param in ObjectInputStream// ww w .j a va2s. c om * @throws IOException * @throws ClassNotFoundException * @see java.io.Serializable */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); }
From source file:fr.openwide.core.wicket.more.model.GenericEntityModel.java
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { in.defaultReadObject(); if (EXTENDED_DEBUG_INFO) { this.extendedDebugInformation = new LoadableDetachableModelExtendedDebugInformation(); }// w w w . ja v a 2 s .c o m }
From source file:edu.cmu.tetrad.util.ColtTetradMatrix.java
/** * Adds semantic checks to the default deserialization method. This method * must have the standard signature for a readObject method, and the body of * the method must begin with "s.defaultReadObject();". Other than that, any * semantic checks can be specified and do not need to stay the same from * version to version. A readObject method of this form may be added to any * class, even if Tetrad sessions were previously saved out using a version * of the class that didn't include it. (That's what the * "s.defaultReadObject();" is for. See J. Bloch, Effective Java, for help. * * @throws java.io.IOException//from ww w. j ava 2s . c o m * @throws ClassNotFoundException */ private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if (apacheMatrix != null) { data = new DenseDoubleMatrix2D(apacheMatrix.getData()); apacheMatrix = null; } }
From source file:org.LexGrid.LexBIG.Impl.LexBIGServiceMetadataImpl.java
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); String inputString = (String) in.readObject(); ByteArrayInputStream bais = new ByteArrayInputStream(Base64.decodeBase64(inputString)); Input input = new Input(bais); Kryo kryo = new Kryo(); kryo.setInstantiatorStrategy(new StdInstantiatorStrategy()); UnmodifiableCollectionsSerializer.registerSerializers(kryo); SynchronizedCollectionsSerializer.registerSerializers(kryo); kryo.register(Arrays.asList("").getClass(), new ArraysAsListSerializer()); kryo.register(Query.class); kryo.register(Term.class); kryo.register(BooleanQuery.class); kryo.register(RegexQuery.class); ArrayList<Query> queryClauseObject = (ArrayList<Query>) kryo.readClassAndObject(input); ArrayList<Term> termClauseObject = (ArrayList<Term>) kryo.readClassAndObject(input); this.queryClauses = queryClauseObject; this.termClauses = termClauseObject; input.close();// w ww. j a v a 2 s .c o m }
From source file:org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.BeanObjectDescription.java
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); readBeanDescription(getObjectClass(), false); }