List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:com.taqueue.connection.QueueConnectionManager.java
/** * Sets the state of the QueueConnectionManager by reading in * NOTE: As of now we don't verify that the data we read is sane *///from www .j av a 2 s. co m private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { this.manager = null; in.defaultReadObject(); }
From source file:org.apache.axis.message.RPCParam.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { if (in.readBoolean()) { setQName(new QName((String) in.readObject(), (String) in.readObject())); }/*from www .j a v a 2s . c o m*/ in.defaultReadObject(); }
From source file:edu.northwestern.chip.banner.banner.tagging.dictionary.DictionaryTagger.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (stemTokens) { stemmer = new PorterStemmer(); }/*from w ww.j a v a 2s.c o m*/ }
From source file:org.apache.flink.streaming.api.state.NullableCircularBuffer.java
/** * Read the buffer in using a custom routine. * // ww w . ja va 2 s. c om * @param in * the input stream * @throws IOException * @throws ClassNotFoundException */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); elements = new Object[maxElements]; int size = in.readInt(); for (int i = 0; i < size; i++) { elements[i] = in.readObject(); } start = 0; full = (size == maxElements); if (full) { end = 0; } else { end = size; } }
From source file:org.protempa.CompoundLowLevelAbstractionDefinition.java
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); if (this.minimumNumberOfValues < 1) { throw new InvalidObjectException("minimumNumberOfValues must be > 0"); }//from w w w. j a v a 2 s. c o m initInstance(); int numValueClassifications = s.readInt(); for (int i = 0; i < numValueClassifications; i++) { ValueClassification vc = (ValueClassification) s.readObject(); if (vc != null) { addValueClassification(vc); } else { throw new InvalidObjectException("null ValueClassification"); } } }
From source file:net.sf.jasperreports.charts.base.JRBaseBar3DPlot.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (PSEUDO_SERIAL_VERSION_UID < JRConstants.PSEUDO_SERIAL_VERSION_UID_3_1_0) { xOffsetDouble = xOffset;/*from w ww . j a v a 2 s . com*/ yOffsetDouble = yOffset; showLabels = isShowLabels; } }
From source file:org.archive.modules.net.RobotsExclusionPolicy.java
/** If object is DENYALL or ALLOWALL, only the object identity and type * is read from the serialization stream. * * @param stream the serialization stream. * @throws IOException //from ww w .jav a2 s. c om * @throws ClassNotFoundException */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { int ordinal = stream.readInt(); type = Type.values()[ordinal]; if (type == Type.NORMAL) { stream.defaultReadObject(); } }
From source file:com.workplacesystems.queuj.Queue.java
/** * Implement readObject to generate the unique id at deserialization. *//*from w w w .ja v a 2s.c o m*/ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); setId(this); }
From source file:org.protempa.HighLevelAbstractionDefinition.java
@SuppressWarnings("unchecked") private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); initInstance();/*from w w w . j av a 2s . co m*/ Map<List<TemporalExtendedPropositionDefinition>, Relation> rulePairsMap = (Map<List<TemporalExtendedPropositionDefinition>, Relation>) s .readObject(); for (List<TemporalExtendedPropositionDefinition> rulePair : rulePairsMap.keySet()) { add(rulePair.get(0)); add(rulePair.get(1)); } for (Map.Entry<List<TemporalExtendedPropositionDefinition>, Relation> me : rulePairsMap.entrySet()) { List<TemporalExtendedPropositionDefinition> rulep = me.getKey(); setRelation(rulep.get(0), rulep.get(1), me.getValue()); } }
From source file:org.seasar.mayaa.impl.engine.specification.SpecificationImpl.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (_delegateNodeTreeWalker != null) { _delegateNodeTreeWalker.setOwner(this); }/*from w ww. j a v a 2 s.c om*/ for (Iterator it = iterateChildNode(); it.hasNext();) { NodeTreeWalker child = (NodeTreeWalker) it.next(); child.setParentNode(this); } nodeSerializer().specLoaded(this); }