List of usage examples for java.io ObjectOutputStream defaultWriteObject
public void defaultWriteObject() throws IOException
From source file:org.archive.modules.net.RobotsExclusionPolicy.java
/** If object is DENYALL or ALLOWALL, only the object identity and type * is written in the serialization stream. * * @param stream the serialization stream. * @throws IOException //from www. j a va2 s . c o m */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.writeInt(type.ordinal()); if (type == Type.NORMAL) { stream.defaultWriteObject(); } }
From source file:org.jannocessor.proxy.CodeNodeProxy.java
private void writeObject(ObjectOutputStream out) throws IOException { // avoid serialization of the parent CodeNode parentBackup = getParent(); setParent(null);/* w w w. j a v a2 s. co m*/ // pre-load all data for serialization loadAllData(); out.defaultWriteObject(); // restore the parent setParent(parentBackup); }
From source file:dk.netarkivet.harvester.indexserver.distribute.IndexRequestMessage.java
/** * Invoke default method for serializing object. * * @param s The stream the object is written to. *///from ww w . j av a2 s. co m private void writeObject(ObjectOutputStream s) { try { s.defaultWriteObject(); } catch (Exception e) { throw new IOFailure("Unexpected error during serialization", e); } }
From source file:com.taqueue.connection.QueueConnectionManager.java
/** * Write the QueueConnectionManager to the output stream out *//*from www .ja v a2s . c o m*/ private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.defaultWriteObject(); }
From source file:org.jfree.experimental.chart.plot.dial.SimpleDialFrame.java
/** * Provides serialization support./* ww w.j av a 2s. 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.writePaint(this.backgroundPaint, stream); SerialUtilities.writePaint(this.foregroundPaint, stream); SerialUtilities.writeStroke(this.stroke, stream); }
From source file:org.kuali.rice.krms.impl.repository.ContextBo.java
private void writeObject(ObjectOutputStream stream) throws IOException, ClassNotFoundException { agendas.size();//from w w w. j ava2 s. c o m attributeBos.size(); stream.defaultWriteObject(); }
From source file:org.mule.api.MessagingException.java
private void writeObject(ObjectOutputStream out) throws Exception { out.defaultWriteObject(); if (this.failingMessageProcessor instanceof Serializable) { out.writeBoolean(true);/*from www. j a va 2 s. c om*/ out.writeObject(this.failingMessageProcessor); } else { out.writeBoolean(false); } }
From source file:org.protempa.CompoundLowLevelAbstractionDefinition.java
private void writeObject(ObjectOutputStream s) throws IOException { s.defaultWriteObject(); s.writeInt(this.valueClassifications.size()); for (ValueClassification vc : this.valueClassifications) { s.writeObject(vc);//from www . j a v a 2 s .c o m } }
From source file:vteaexploration.XYPolygonAnnotation.java
/** * Provides serialization support./*from w w w. j ava2s . c o m*/ * * @param stream the output stream (null not permitted). * * @throws IOException if there is an I/O error. */ private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writeStroke(this.stroke, stream); SerialUtilities.writePaint(this.outlinePaint, stream); SerialUtilities.writePaint(this.fillPaint, stream); }
From source file:org.apache.flink.streaming.api.state.NullableCircularBuffer.java
/** * Write the buffer out using a custom routine. * /*from w ww. j a v a2 s .com*/ * @param out * the output stream * @throws IOException */ private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeInt(size()); for (Iterator it = iterator(); it.hasNext();) { out.writeObject(it.next()); } }