- 
- Enclosing interface:
- ObjectInputFilter
 
 public static interface ObjectInputFilter.FilterInfoFilterInfo provides access to information about the current object being deserialized and the status of theObjectInputStream.- Since:
- 9
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longarrayLength()The number of array elements when deserializing an array of the class.longdepth()The current depth.longreferences()The current number of object references.Class<?>serialClass()The class of an object being deserialized.longstreamBytes()The current number of bytes consumed.
 
- 
- 
- 
Method Detail- 
serialClassClass<?> serialClass() The class of an object being deserialized. For arrays, it is the array type. For example, the array class name of a 2 dimensional array of strings is "[[Ljava.lang.String;". To check the array's element type, iteratively useClass.getComponentTypewhile the result is an array and then check the class. TheserialClass is nullin 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.- Returns:
- class of an object being deserialized; may be null
 
 - 
arrayLengthlong arrayLength() The number of array elements when deserializing an array of the class.- Returns:
- the non-negative number of array elements when deserializing an array of the class, otherwise -1
 
 - 
depthlong depth() The current depth. The depth starts at1and increases for each nested object and decrements when each nested object returns.- Returns:
- the current depth
 
 - 
referenceslong references() The current number of object references.- Returns:
- the non-negative current number of object references
 
 - 
streamByteslong streamBytes() The current number of bytes consumed.- Implementation Requirements:
- streamBytesis implementation specific and may not be directly related to the object in the stream that caused the callback.
- Returns:
- the non-negative current number of bytes consumed
 
 
- 
 
-