/** * Writes a class annotation string value (possibly <code>null</code>) to be read by a * corresponding <code>MarshalInputStream</code> implementation. * * <p><code>MarshalOutputStream</code> implements this method to just write the annotation value * to this stream using {@link ObjectOutputStream#writeObject writeObject}. * * <p>A subclass can override this method to write the annotation to a different location. * * @param annotation the class annotation string value (possibly <code>null</code>) to write * @throws IOException if I/O exception occurs writing the annotation **/ protected void writeAnnotation(String annotation) throws IOException { writeObject(annotation); }
/** * Writes a class annotation string value (possibly * <code>null</code>) to be read by a corresponding * <code>MarshalInputStream</code> implementation. * * <p><code>MarshalOutputStream</code> implements this method to * just write the annotation value to this stream using {@link * ObjectOutputStream#writeObject writeObject}. * * <p>A subclass can override this method to write the annotation * to a different location. * * @param annotation the class annotation string value (possibly * <code>null</code>) to write * * @throws IOException if I/O exception occurs writing the * annotation **/ protected void writeAnnotation(String annotation) throws IOException { writeObject(annotation); } }
@Override public void writeUpdate(OutputStream out, Object value) throws Exception { MarshalOutputStream s = new MarshalOutputStream(out, Collections.EMPTY_LIST); s.writeObject(value); s.flush(); }
@Override public void snapshot(OutputStream out) throws Exception { if (state == null) { state = new Activation(); } MarshalOutputStream s = new MarshalOutputStream(out, Collections.EMPTY_LIST); s.writeObject(state); s.flush(); }
new AtomicMarshalOutputStream(child.getOutputStream(), Collections.EMPTY_LIST); out.writeObject(id); ActivationGroupDesc gd = desc; if (gd.getClassName() == null) { gd.getCommandEnvironment()); out.writeObject(gd); out.writeLong(incarnation); out.flush();
oos.writeObject(proxy); oos.close(); proxyRegistrarBytes = os.toByteArray();