List of usage examples for java.io ObjectOutputStream defaultWriteObject
public void defaultWriteObject() throws IOException
From source file:hudson.FilePath.java
private void writeObject(ObjectOutputStream oos) throws IOException { Channel target = Channel.current(); if (channel != null && channel != target) throw new IllegalStateException("Can't send a remote FilePath to a different remote channel"); oos.defaultWriteObject(); oos.writeBoolean(channel == null);// w w w . ja v a 2 s . c om }
From source file:com.projity.pm.task.NormalTask.java
protected void doWriteObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); hasKey.serialize(s);//from w w w . jav a 2 s . com customFields.serialize(s); if (version < 1) currentSchedule.serialize(s); else { int sCount = 0; for (int i = 0; i < Settings.numBaselines(); i++) { TaskSnapshot snapshot = (TaskSnapshot) getSnapshot(new Integer(i)); if (snapshot != null) sCount++; } s.writeInt(sCount); for (int i = 0; i < Settings.numBaselines(); i++) { TaskSnapshot snapshot = (TaskSnapshot) getSnapshot(new Integer(i)); if (snapshot == null) continue; s.writeInt(i); snapshot.serialize(s); } } }
From source file:com.projity.pm.assignment.Assignment.java
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); hasKey.serialize(s); }
From source file:com.projity.pm.task.Project.java
private void writeObject(ObjectOutputStream s) throws IOException { workspace = (Workspace) createWorkspace(SavableToWorkspace.PERSIST); s.defaultWriteObject(); hasKey.serialize(s);/* w ww . j a va 2 s.c om*/ }
From source file:com.phoenixst.plexus.DefaultGraph.java
/** * Serialize this <code>DefaultGraph</code>. * * @serialData the number of nodes (int), all the nodes, the * number of edges (int), all the edges. *//* w w w . j ava 2 s . c o m*/ private void writeObject(ObjectOutputStream out) throws IOException { if (LOGGER.isInfoEnabled()) { LOGGER.info("Serializing " + instanceString); } out.defaultWriteObject(); out.writeInt(nodeMap.size()); for (Iterator i = nodeMap.keySet().iterator(); i.hasNext();) { out.writeObject(i.next()); } out.writeInt(edgeSize); for (Iterator i = edgeCollection.iterator(); i.hasNext();) { out.writeObject(i.next()); } }
From source file:org.plasma.sdo.core.CoreDataObject.java
/** * Writes out metadata logical names as string * for serialization.//from w ww .j a v a2 s.c o m * @param out the stream * @throws IOException */ private void writeObject(java.io.ObjectOutputStream out) throws IOException { this.typeName = this.type.getName(); this.typeUri = this.type.getURI(); this.type = null; if (this.containmentProperty != null) { this.containmentPropertyName = this.containmentProperty.getName(); this.containmentPropertyTypeName = this.containmentProperty.getContainingType().getName(); this.containmentPropertyTypeUri = this.containmentProperty.getContainingType().getURI(); this.containmentProperty = null; } out.defaultWriteObject(); }
From source file:org.apache.openjpa.kernel.StateManagerImpl.java
private void writeObject(ObjectOutputStream oos) throws IOException { oos.writeObject(_broker);/* w w w . ja v a 2 s. c o m*/ oos.defaultWriteObject(); oos.writeObject(_meta.getDescribedType()); writePC(oos, _pc); }
From source file:org.apache.clerezza.utils.Uri.java
/** * Write the content of this URI./*from www. j a v a2 s . c om*/ * * @param oos the object-output stream * @throws IOException If an IO problem occurs. */ private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); }
From source file:ucar.unidata.idv.control.chart.MyXYPlot.java
/** * Provides serialization support.// w w w.j av a2s . c om * * @param stream the output stream. * * @throws IOException if there is an I/O error. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writeStroke(this.domainGridlineStroke, stream); SerialUtilities.writePaint(this.domainGridlinePaint, stream); SerialUtilities.writeStroke(this.rangeGridlineStroke, stream); SerialUtilities.writePaint(this.rangeGridlinePaint, stream); SerialUtilities.writeStroke(this.rangeZeroBaselineStroke, stream); SerialUtilities.writePaint(this.rangeZeroBaselinePaint, stream); SerialUtilities.writeStroke(this.domainCrosshairStroke, stream); SerialUtilities.writePaint(this.domainCrosshairPaint, stream); SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream); SerialUtilities.writePaint(this.rangeCrosshairPaint, stream); SerialUtilities.writePaint(this.domainTickBandPaint, stream); SerialUtilities.writePaint(this.rangeTickBandPaint, stream); SerialUtilities.writePoint2D(this.quadrantOrigin, stream); for (int i = 0; i < 4; i++) { SerialUtilities.writePaint(this.quadrantPaint[i], stream); } }