Top Fields Constructors Methods
com.sun.faces.util

public Class DebugObjectOutputStream

extends ObjectOutputStream
Class Inheritance
Imports
java.io.IOException, .ObjectOutputStream, .OutputStream, java.lang.reflect.Field, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
pack-priv boolean
broken

Indicates whether or not OOS has tried to write an IOException (presumably as the result of a serialization error) to the stream.

private static final Field
pack-priv final List<Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
currentDepth()

Returns a 0-based depth within the object graph of the current object being serialized.

public List<Object>
getStack()

Returns the path to the last object serialized.

private Object
pop()

protected Object
replaceObject(Object
the object to be replaced
o
)

Overrides java.io.ObjectOutputStream.replaceObject.

Abuse replaceObject() as a hook to maintain our stack.

private void
truncate(int depth)

Inherited from java.io.ObjectOutputStream:
annotateClassannotateProxyClassclosedefaultWriteObjectdrainenableReplaceObjectflushputFieldsresetuseProtocolVersionwritewritewritewriteBooleanwriteBytewriteByteswriteCharwriteCharswriteClassDescriptorwriteDoublewriteFieldswriteFloatwriteIntwriteLongwriteObjectwriteObjectOverridewriteShortwriteStreamHeaderwriteUnsharedwriteUTF

Field Detail

brokenback to summary
pack-priv boolean broken

Indicates whether or not OOS has tried to write an IOException (presumably as the result of a serialization error) to the stream.

DEPTH_FIELDback to summary
private static final Field DEPTH_FIELD
stackback to summary
pack-priv final List<Object> stack

Constructor Detail

DebugObjectOutputStreamback to summary
public DebugObjectOutputStream(OutputStream out) throws IOException

Method Detail

currentDepthback to summary
private int currentDepth()

Returns a 0-based depth within the object graph of the current object being serialized.

getStackback to summary
public List<Object> getStack()

Returns the path to the last object serialized. If an exception occurred, this should be the path to the non-serializable object.

popback to summary
private Object pop()
replaceObjectback to summary
protected Object replaceObject(Object o)

Overrides java.io.ObjectOutputStream.replaceObject.

Abuse replaceObject() as a hook to maintain our stack.

Parameters
o:Object

Doc from java.io.ObjectOutputStream.replaceObject.

the object to be replaced

Returns:Object

Doc from java.io.ObjectOutputStream.replaceObject.

the alternate object that replaced the specified one

Annotations
@Override
truncateback to summary
private void truncate(int depth)