/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Default method to write objects to this stream. Serializable fields * defined in the object's class and superclasses are written to the output * stream. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if this method is not called from {@code writeObject()}. * @see ObjectInputStream#defaultReadObject */ public void defaultWriteObject() throws IOException { if (currentObject == null) { throw new NotActiveException(); } writeFieldValues(currentObject, currentClass); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }
/** * Writes the fields of the object currently being written to the target * stream. The field values are buffered in the currently active {@code * PutField} object, which can be accessed by calling {@code putFields()}. * * @throws IOException * if an error occurs while writing to the target stream. * @throws NotActiveException * if there are no fields to write to the target stream. * @see #putFields */ public void writeFields() throws IOException { // Has to have fields to write if (currentPutField == null) { throw new NotActiveException(); } writeFieldValues(currentPutField); }