List of usage examples for java.io ObjectOutputStream defaultWriteObject
public void defaultWriteObject() throws IOException
From source file:org.eleusoft.uri.apache.URI.java
/** * Write the content of this URI./*from w w w .j a v a2 s .c o m*/ * * @param oos the object-output stream * @throws IOException If an IO problem occurs. */ private void writeObject(ObjectOutputStream oos) throws IOException { // TODO here shoul write only the string... oos.defaultWriteObject(); }
From source file:org.openid4java.httpclient.URI.java
/** * Write the content of this URI.//from w w w .j a v a 2s. c om * * @param oos the object-output stream * @throws IOException If an IO problem occurs. */ protected void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); }
From source file:NavigableMap.java
/** * Save the state of the <tt>Map</tt> instance to a stream. * /*from ww w . j av a2s . co m*/ * @serialData The key (Object) and value (Object) for each key-value mapping * represented by the Map, followed by <tt>null</tt>. The * key-value mappings are emitted in key-order (as determined by * the Comparator, or by the keys' natural ordering if no * Comparator). */ private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException { // Write out the Comparator and any hidden stuff s.defaultWriteObject(); // Write out keys and values (alternating) for (Node<K, V> n = findFirst(); n != null; n = n.next) { V v = n.getValidValue(); if (v != null) { s.writeObject(n.key); s.writeObject(v); } } s.writeObject(null); }
From source file:KIDLYAbstractRenderer.java
/** * Provides serialization support./*from ww w .j ava2 s . 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.paint, stream); SerialUtilities.writePaint(this.basePaint, stream); SerialUtilities.writePaint(this.fillPaint, stream); SerialUtilities.writePaint(this.baseFillPaint, stream); SerialUtilities.writePaint(this.outlinePaint, stream); SerialUtilities.writePaint(this.baseOutlinePaint, stream); SerialUtilities.writeStroke(this.stroke, stream); SerialUtilities.writeStroke(this.baseStroke, stream); SerialUtilities.writeStroke(this.outlineStroke, stream); SerialUtilities.writeStroke(this.baseOutlineStroke, stream); SerialUtilities.writeShape(this.shape, stream); SerialUtilities.writeShape(this.baseShape, stream); SerialUtilities.writePaint(this.itemLabelPaint, stream); SerialUtilities.writePaint(this.baseItemLabelPaint, stream); SerialUtilities.writeShape(this.baseLegendShape, stream); SerialUtilities.writePaint(this.baseLegendTextPaint, stream); }
From source file:com.microsoft.tfs.core.httpclient.URI.java
/** * Write the content of this URI./* w ww . j ava 2 s .co m*/ * * @param oos * the object-output stream * @throws IOException * If an IO problem occurs. */ private void writeObject(final ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); }
From source file:org.apache.openjpa.kernel.BrokerImpl.java
private void writeObject(ObjectOutputStream out) throws IOException { assertOpen();//w ww . j a va 2s.c o m lock(); try { if (isActive()) { if (!getOptimistic()) throw new InvalidStateException(_loc.get("cant-serialize-pessimistic-broker")); if (hasFlushed()) throw new InvalidStateException(_loc.get("cant-serialize-flushed-broker")); if (hasConnection()) throw new InvalidStateException(_loc.get("cant-serialize-connected-broker")); } try { _isSerializing = true; out.writeObject(_factory.getPoolKey()); out.defaultWriteObject(); } finally { _isSerializing = false; } } finally { unlock(); } }