List of usage examples for java.io ObjectOutputStream defaultWriteObject
public void defaultWriteObject() throws IOException
From source file:fr.openwide.core.wicket.more.model.GenericEntityModel.java
private void writeObject(ObjectOutputStream out) throws IOException { if (attached) { LOGGER.warn(//from w w w . ja v a2 s .co m "Serializing an attached GenericEntityModel with persistedEntityReference={} and notYetPersistedEntity={}", persistedEntityReference, notYetPersistedEntity); if (EXTENDED_DEBUG_INFO) { LOGGER.debug("StackTrace from the latest attach (setObject() or load()): \n{}", extendedDebugInformation.getLatestAttachInformation()); } } out.defaultWriteObject(); }
From source file:it.unimi.dsi.util.ImmutableExternalPrefixMap.java
private void writeObject(final ObjectOutputStream s) throws IOException { s.defaultWriteObject(); if (selfContained) { final FileInputStream fis = new FileInputStream(tempDumpStreamFilename); IOUtils.copy(fis, s);//w w w . j a v a2s .com fis.close(); } }
From source file:gov.nih.nci.caintegrator.ui.graphing.chart.plot.BoxAndWhiskerCoinPlotRenderer.java
/** * Provides serialization support./* w w w . ja v a 2s .c o m*/ * * @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.getArtifactPaint(), stream); }
From source file:pt.quintans.ezSQL.toolkit.io.BinStore.java
/** * Writes the state of this object during serialization. * //from w w w .ja v a 2 s. co m * @param out * The stream to which the state should be written. * * @throws IOException * if an error occurs. */ private void writeObject(ObjectOutputStream out) throws IOException { // Read the data if (this.dfos.isInMemory()) { this.cachedContent = get(); } else { this.cachedContent = null; this.dfosFile = this.dfos.getFile(); } // write out values out.defaultWriteObject(); }
From source file:extern.NpairsBoxAndWhiskerRenderer.java
/** * Provides serialization support./*from w w w. ja v a 2 s. c o m*/ * * @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.artifactPaint, stream); }
From source file:ch.mlutz.plugins.t4e.tapestry.TapestryModule.java
private void writeObject(java.io.ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); EclipseSerializer.serializeResource(stream, webappFolder); }
From source file:org.taverna.server.master.localworker.RemoteRunDelegate.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeUTF(secContext.getOwner().getName()); out.writeObject(secContext.getFactory()); out.writeObject(new MarshalledObject<RemoteSingleRun>(run)); }
From source file:org.springframework.integration.MessageHeaders.java
private void writeObject(ObjectOutputStream out) throws IOException { List<String> keysToRemove = new ArrayList<String>(); for (Map.Entry<String, Object> entry : this.headers.entrySet()) { if (!(entry.getValue() instanceof Serializable)) { keysToRemove.add(entry.getKey()); }/* w w w . j a va2s . c o m*/ } for (String key : keysToRemove) { if (logger.isInfoEnabled()) { logger.info("removing non-serializable header: " + key); } this.headers.remove(key); } out.defaultWriteObject(); }
From source file:HashMap.java
private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); doWriteObject(out); }
From source file:org.hippoecm.frontend.model.JcrItemModel.java
private void writeObject(ObjectOutputStream output) throws IOException { if (isAttached()) { log.warn("Undetached JcrItemModel " + getPath()); T object = this.getObject(); if (object != null) { TraceMonitor.trace(object);//from w ww. j a v a 2 s .co m } if (RuntimeConfigurationType.DEPLOYMENT.equals(Application.get().getConfigurationType())) { detach(); } } output.defaultWriteObject(); }