protected void writeObjectOverride(Object obj) throws IOException { checkOutput(); objectOutput.writeObject(obj); }
private void checkOutput() throws IOException { if (objectOutput==null) { dataContainer = new DataContainer(null,this.getSubstitutionInterface(),checkSerializableClass,buffer); if (output instanceof DataOutputStream) { dataOutput = (DataOutputStream) output; } else { dataOutput = new DataOutputStream(output); } objectOutput = dataContainer.getDirectOutput(this.dataOutput); } }
private void checkOutput() throws IOException { if (objectOutput==null) { dataContainer = new DataContainer(null,this.getSubstitutionInterface(),checkSerializableClass,buffer,classDescriptorStrategy, objectDescriptorStrategy); if (output instanceof DataOutputStream) { dataOutput = (DataOutputStream) output; } else { dataOutput = new DataOutputStream(output); } objectOutput = dataContainer.getDirectOutput(this.dataOutput); } }
protected void writeObjectOverride(Object obj) throws IOException { checkOutput(); objectOutput.writeObject(obj); }
public void reset() throws IOException { checkOutput(); objectOutput.writeByte(DataContainerConstants.RESET); dataContainer.getCache().reset(); }
public void reset() throws IOException { checkOutput(); objectOutput.writeByte(DataContainerConstants.RESET); dataContainer.getCache().reset(); }