1 22 package org.jboss.util.stream; 23 24 import java.io.IOException ; 25 import java.io.ObjectOutputStream ; 26 import java.io.ObjectStreamClass ; 27 import java.io.OutputStream ; 28 29 37 public class CustomObjectOutputStream 38 extends ObjectOutputStream 39 { 40 41 46 public CustomObjectOutputStream(OutputStream out) 47 throws IOException 48 { 49 super(out); 50 } 51 52 57 protected void writeClassDescriptor(ObjectStreamClass classdesc) 58 throws IOException 59 { 60 writeUTF(classdesc.getName()); 61 } 62 63 } 64 | Popular Tags |