List of usage examples for java.io ObjectInputStream defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException
From source file:UUID.java
private void readObject(ObjectInputStream objectinputstream) throws IOException, ClassNotFoundException { objectinputstream.defaultReadObject(); version = -1;/* ww w. j av a2s.c o m*/ variant = -1; timestamp = -1L; sequence = -1; node = -1L; hashCode = -1; }
From source file:org.photovault.replication.ChangeDTO.java
/** Deserialize the change from a stream//from www .j a va2 s. c om @param is @throws java.io.IOException @throws java.lang.ClassNotFoundException @throws IllegalStateException If the uuid of the read change does not match change state. */ private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException { is.defaultReadObject(); changeUuid = (UUID) is.readObject(); historyClass = (Class) is.readObject(); targetClassName = (String) is.readObject(); targetUuid = (UUID) is.readObject(); int parentCount = is.readInt(); parentIds = new ArrayList<UUID>(parentCount); for (int n = 0; n < parentCount; n++) { parentIds.add((UUID) is.readObject()); } int changedFieldCount = is.readInt(); changedFields = new TreeMap(); for (int n = 0; n < changedFieldCount; n++) { FieldChange val = (FieldChange) is.readObject(); changedFields.put((String) val.getName(), val); } verify(); }
From source file:com.mgmtp.jfunk.common.util.Configuration.java
private void readObject(final ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); String zipFileName = ois.readUTF(); zipArchive = new ZipFile(zipFileName); }
From source file:io.s4.meter.common.EventGenerator.java
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); initInternal();/* ww w.j a v a 2 s . c o m*/ logger.info("Initialized event generator."); }
From source file:org.jfree.experimental.chart.plot.dial.DialCap.java
/** * Provides serialization support.//w w w . ja v a 2s . c om * * @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.fillPaint = SerialUtilities.readPaint(stream); this.outlinePaint = SerialUtilities.readPaint(stream); this.outlineStroke = SerialUtilities.readStroke(stream); }
From source file:com.cyberway.issue.crawler.datamodel.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 // ww w.j av a2s . c om * @throws ClassNotFoundException */ private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { type = stream.readInt(); if (type == NORMAL_TYPE) { stream.defaultReadObject(); } }
From source file:com.elsevier.spark_xml_utils.xslt.XSLTProcessor.java
/** * Restore the serialized object and then do a one time initialization to improve * performance for repetitive invocations of transformations. We need to * initialize the transient variables.//ww w . j a v a2 s . c o m * * @param inputStream * @throws IOException * @throws ClassNotFoundException * @throws XSLTException */ private void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException, XSLTException { inputStream.defaultReadObject(); init(); }
From source file:com.flowpowered.api.geo.discrete.Point.java
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); String world = in.readUTF();//w ww .jav a 2 s . co m World w = Flow.getEngine().getWorldManager().getWorld(world, true); try { Field field; field = Point.class.getDeclaredField("world"); field.setAccessible(true); field.set(this, w); } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) { if (Flow.debugMode()) { e.printStackTrace(); } } }
From source file:org.jfree.experimental.chart.plot.dial.SimpleDialFrame.java
/** * Provides serialization support.//from w w w . jav a 2 s . c o 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.backgroundPaint = SerialUtilities.readPaint(stream); this.foregroundPaint = SerialUtilities.readPaint(stream); this.stroke = SerialUtilities.readStroke(stream); }
From source file:com.metaparadigm.jsonrpc.JSONSerializer.java
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject(); serializableMap = new HashMap(); Iterator i = serializerList.iterator(); while (i.hasNext()) { Serializer s = (Serializer) i.next(); Class classes[] = s.getSerializableClasses(); for (int j = 0; j < classes.length; j++) { serializableMap.put(classes[j], s); }/*from w w w . j a va2 s. c o m*/ } }