1 8 package org.ozoneDB.core.storage.gammaStore; 9 10 import java.io.IOException ; 11 import java.io.ObjectOutputStream ; 12 import java.io.ObjectStreamClass ; 13 import java.io.OutputStream ; 14 15 19 public class GammaObjectOutputStream extends ObjectOutputStream { 20 21 private ObjectStreamClasses objectStreamClasses; 22 23 public GammaObjectOutputStream(OutputStream out, ObjectStreamClasses objectStreamClasses) throws IOException { 24 super(out); 25 this.objectStreamClasses = objectStreamClasses; 26 } 27 28 protected void writeStreamHeader() throws IOException { 29 } 30 31 protected void writeClassDescriptor(ObjectStreamClass objectStreamClass) throws IOException { 32 writeInt(objectStreamClasses.getHandle(objectStreamClass)); 33 } 34 35 } | Popular Tags |