1 19 package org.objectweb.carol.cmi; 20 21 import java.io.IOException ; 22 import java.io.ObjectOutputStream ; 23 import java.io.OutputStream ; 24 import java.rmi.server.RMIClassLoader ; 25 26 public class CmiOutputStream extends ObjectOutputStream { 27 public CmiOutputStream(OutputStream out) throws IOException { 28 super(out); 29 } 30 31 protected void annotateClass(Class cl) throws IOException { 32 writeLocation(RMIClassLoader.getClassAnnotation(cl)); 33 } 34 35 protected void annotateProxyClass(Class cl) throws IOException { 36 annotateClass(cl); 37 } 38 39 protected void writeLocation(String location) throws IOException { 40 writeObject(location); 41 } 42 } 43 | Popular Tags |