/** * {@inheritDoc} */ public void writeObject(Object obj) throws IOException { doWriteObject(obj, false); } }
void doFinish() throws IOException { super.finish(); }
public void flush() throws IOException { super.flush(); final ByteArrayOutputStream baos = byteArrayOutputStream; if (baos.size() > 0) { steps.add(new ByteDataStep(baos.toByteArray())); baos.reset(); } } }
StepObjectOutput(final Queue<Step> steps) throws IOException { super(SerializingCloner.this.bufferSize); this.steps = steps; super.start(Marshalling.createByteOutput(byteArrayOutputStream)); }
/** {@inheritDoc} */ public final void writeObject(final Object obj) throws IOException { try { super.writeObject(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
/** {@inheritDoc} */ public final void writeObjectUnshared(final Object obj) throws IOException { try { super.writeObjectUnshared(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
StepObjectOutput(final Queue<Step> steps) throws IOException { super(SerializingCloner.this.bufferSize); this.steps = steps; super.start(Marshalling.createByteOutput(byteArrayOutputStream)); }
/** {@inheritDoc} */ public final void writeObject(final Object obj) throws IOException { try { super.writeObject(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
/** {@inheritDoc} */ public final void writeObjectUnshared(final Object obj) throws IOException { try { super.writeObjectUnshared(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
protected void doWriteObject(final Object obj, final boolean unshared) throws IOException { super.flush(); final ByteArrayOutputStream baos = byteArrayOutputStream; if (baos.size() > 0) { steps.add(new ByteDataStep(baos.toByteArray())); baos.reset(); } steps.add(new CloneStep(obj)); }
/** * {@inheritDoc} */ public void writeObjectUnshared(Object obj) throws IOException { doWriteObject(obj, true); }
/** {@inheritDoc} */ public void finish() throws IOException { try { super.finish(); } finally { clearClassCache(); } }
StepObjectOutput(final Queue<Step> steps) throws IOException { super(SerializingCloner.this.bufferSize); this.steps = steps; super.start(Marshalling.createByteOutput(byteArrayOutputStream)); }
/** {@inheritDoc} */ public final void writeObject(final Object obj) throws IOException { try { super.writeObject(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
/** {@inheritDoc} */ public final void writeObjectUnshared(final Object obj) throws IOException { try { super.writeObjectUnshared(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }
public void flush() throws IOException { super.flush(); final ByteArrayOutputStream baos = byteArrayOutputStream; if (baos.size() > 0) { steps.add(new ByteDataStep(baos.toByteArray())); baos.reset(); } } }
/** * {@inheritDoc} */ public void writeObject(Object obj) throws IOException { doWriteObject(obj, false); } }
void doFinish() throws IOException { super.finish(); }
StepObjectOutput(final Queue<Step> steps) throws IOException { super(SerializingCloner.this.bufferSize); this.steps = steps; super.start(Marshalling.createByteOutput(byteArrayOutputStream)); }
/** {@inheritDoc} */ public final void writeObject(final Object obj) throws IOException { try { super.writeObject(obj); } catch (IOException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } catch (RuntimeException e) { TraceInformation.addObjectInformation(e, obj); exceptionListener.handleMarshallingException(e, obj); throw e; } }