Examples of ObjectStreamField


Examples of java.io.ObjectStreamField

      throws IOException
  {
      ObjectOutputStream.PutField putFields = out.putFields();

      for (int i = 0 ; i < serialPersistentFields.length ; i++) {
    ObjectStreamField field = serialPersistentFields[i];

    if (field.getName().equals("name")) {
        putFields.put(field.getName(), name);
    }
    else if (field.getName().equals("resourceBundleName")) {
        putFields.put(field.getName(), resourceBundleName);
    }
    else if (field.getName().equals("value")) {
        putFields.put(field.getName(), value);
    }

    // if a field name is unknown it looks like the Level class
    // evolved, but we are in no position to provide a meaningful
    // value, so therefore don't provide a value as the putField
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.