Java Code Examples for java.io.ObjectOutput#writeChars()

The following examples show how to use java.io.ObjectOutput#writeChars() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Solution.java    From JavaRushTasks with MIT License 5 votes vote down vote up
@Override
public void writeExternal(ObjectOutput out) throws IOException {
    out.writeObject(mother);
    out.writeObject(father);
    out.writeChars(firstName);
    out.writeChars(lastName);
    out.writeInt(age);
    out.writeObject(children);
}
 
Example 2
Source File: Solution.java    From JavaExercises with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void writeExternal(ObjectOutput out) throws IOException {
    out.writeChars(firstName);
    out.writeChars(lastName);
    out.writeObject(mother);
    out.writeObject(father);
    out.writeInt(age);
    out.writeObject(children);
}