public static interface ObjectInputFilter.FilterInfo
ObjectInputStream
.Modifier and Type | Method | Description |
---|---|---|
long |
arrayLength() |
The number of array elements when deserializing an array of the class.
|
long |
depth() |
The current depth.
|
long |
references() |
The current number of object references.
|
Class<?> |
serialClass() |
The class of an object being deserialized.
|
long |
streamBytes() |
The current number of bytes consumed.
|
Class<?> serialClass()
[[Ljava.lang.String;
".
To check the array's element type, iteratively use
Class.getComponentType
while the result
is an array and then check the class.
The serialClass is null
in the case where a new object is not being
created and to give the filter a chance to check the depth, number of
references to existing objects, and the stream size.long arrayLength()
long depth()
1
and increases for each nested object and
decrements when each nested object returns.long references()
long streamBytes()
streamBytes
is implementation specific
and may not be directly related to the object in the stream
that caused the callback. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps