Java Object Save writeObject(Object obj, ObjectOutput out)

Here you can find the source of writeObject(Object obj, ObjectOutput out)

Description

write Object

License

Open Source License

Declaration

public static void writeObject(Object obj, ObjectOutput out) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.io.ObjectOutput;

public class Main {
    public static final int NULL = 0x00;
    public static final int NOTNULL = 0x01;

    public static void writeObject(Object obj, ObjectOutput out) throws IOException {
        if (obj == null) {
            out.writeObject(NULL);//from w ww  . ja  v  a2  s .  c  om
        } else {
            out.writeObject(NOTNULL);
            out.writeObject(obj);
        }
    }
}

Related

  1. writeObject(Object i)
  2. writeObject(Object o, File f)
  3. writeObject(Object o, File path)
  4. writeObject(Object o, ObjectOutput dos)
  5. writeObject(Object obj, File path)
  6. writeObject(Object object)
  7. writeObject(Object object, File destinationFile)
  8. writeObject(Object object, String path)
  9. writeObject(Object p_object, File p_outFile)