Lines Matching defs:object

96     // Resolve object is a mechanism for replacement
339 * Gets the value of the object field identified by {@code name} from
451 // returns 0 if next data is an object, or N if reading primitive types
459 * read an object, for example, so an exception has to be thrown.
515 * defined in the object's class and superclasses are read from the source
519 * if the object's class cannot be found.
521 * if an I/O error occurs while reading the object data.
537 * Enables object replacement for this stream. By default this is not
542 * {@code true} to enable object replacement; {@code false} to
547 * object replacement for this stream.
604 * The new object will be an instance of this class
607 * @return the object created from {@code instantiationClass}
625 * kind of object follows
851 * @return the object read from the stream
857 * If the class corresponding to the object being read could not
900 * read the object unshared
901 * @return the object read from the stream
907 * If the class corresponding to the object being read could not
965 * an object previously read. Return the actual object previously read.
967 * @return the object previously read from the stream
996 * regular instance in the object graph, but the exception instance that
997 * happened (if any) when dumping the original object graph. The set of seen
999 * object.
1001 * When exceptions are found normally in the object graph, they are loaded
1002 * as a regular object, and not by this method. In that case, the set of
1009 * object.
1011 * If a class could not be found when reading the object graph
1024 // Now we read the Throwable object that was saved
1118 * Reads the persistent fields of the object that is currently being read
1119 * from the source stream. The values read are stored in a GetField object
1120 * that provides access to the persistent fields. This GetField object is
1123 * @return the GetField object from which persistent fields can be accessed
1126 * if the class of an object being deserialized can not be
1131 * if this stream is currently not reading an object.
1204 * values will be used to set instance fields in object {@code obj}.
1207 * directly into the object {@code obj}.
1224 * If a class of an object being de-serialized can not be found
1398 * store field values into is {@code object}. If the class
1403 * @param object
1421 private void readHierarchy(Object object, ObjectStreamClass classDesc)
1424 if (object == null && mustResolve) {
1435 if (object == null) {
1443 Class<?> nextClass = object.getClass();
1457 readObjectNoData(object, superclass, ObjectStreamClass.lookupStreamClass(superclass));
1460 readObjectForClass(object, streamClassList.get(j));
1491 private void readObjectNoData(Object object, Class<?> cl, ObjectStreamClass classDesc)
1499 readMethod.invoke(object, new Object[0]);
1515 private void readObjectForClass(Object object, ObjectStreamClass classDesc)
1519 currentObject = object;
1537 readMethod.invoke(object, new Object[] { this });
1613 * read the object unshared
1711 * read the object unshared
1823 * read the object unshared
1985 // WARNING - What if the object is serializable and externalizable ?
2043 * Read a new object from the stream. It is assumed the object has not been
2044 * loaded yet (not a cyclic reference). Return the object read.
2046 * If the object implements <code>Externalizable</code> its
2053 * read the object unshared
2054 * @return the object read
2057 * If an IO exception happened when reading the object.
2059 * If optional data could not be found when reading the object
2119 // If Externalizable, just let the object read itself
2169 // was needed but produced the same object or if it could not be
2172 // The object to return is the one we instantiated or a replacement for
2188 * read the object unshared
2208 * read the object unshared
2226 * Reads the next object from the source stream.
2228 * @return the object read from the source stream.
2230 * if the class of one of the objects in the object graph cannot
2235 * if primitive data types were found instead of an object.
2244 * Reads the next unshared object from the source stream.
2246 * @return the new object read.
2248 * if the class of one of the objects in the object graph cannot
2300 // Done reading this object. Is it time to return to the original
2344 * Method to be overriden by subclasses to read the next object from the
2347 * @return the object read from the source stream.
2349 * if the class of one of the objects in the object graph cannot
2354 * if primitive data types were found instead of an object.
2442 * Return the object previously read tagged with handle {@code handle}.
2445 * The handle that this object was assigned when it was read.
2446 * @return the object previously read.
2449 * If there is no previously read object with this handle
2463 * Assume object {@code obj} has been read, and assign a handle to
2467 * Non-null object being loaded.
2469 * An Integer, the handle to this object
2488 * @param object
2489 * an object that can validate itself by receiving a callback.
2493 * if {@code object} is {@code null}.
2499 public synchronized void registerValidation(ObjectInputValidation object,
2508 if (object == null) {
2515 desc.validator = object;
2570 * if the class for an object cannot be found.
2598 * object} with a new object. Object substitution has to be activated first
2600 * returns {@code object}.
2602 * @param object
2603 * the original object for which a replacement may be defined.
2604 * @return the replacement object for {@code object}.
2607 * object.
2612 protected Object resolveObject(Object object) throws IOException {
2613 // By default no object replacement. Subclasses can override
2614 return object;
2625 * java.lang.reflect at the expense of extra object creation