/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
@Override protected final void writeStreamHeader() throws IOException { if (_classDescriptor == null) super.writeStreamHeader(); } }
@Override protected void writeStreamHeader() throws IOException { super.writeStreamHeader(); super.flush(); }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
/** * Constructs a new ObjectOutputStream that writes to the OutputStream * {@code output}. * * @param output * the non-null OutputStream to filter writes on. * * @throws IOException * if an error occurs while writing the object stream * header */ public ObjectOutputStream(OutputStream output) throws IOException { this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output : new DataOutputStream(output); this.enableReplace = false; this.protocolVersion = PROTOCOL_VERSION_2; this.subclassOverridingImplementation = false; resetState(); this.nestedException = new StreamCorruptedException(); // So write...() methods can be used by // subclasses during writeStreamHeader() primitiveTypes = this.output; // Has to be done here according to the specification writeStreamHeader(); primitiveTypes = null; }
subs = new ReplaceTable(10, (float) 3.00); enableOverride = false; writeStreamHeader(); bout.setBlockDataMode(true); if (extendedDebugInfo) {
subs = new ReplaceTable(10, (float) 3.00); enableOverride = false; writeStreamHeader(); bout.setBlockDataMode(true); if (extendedDebugInfo) {