APIdia Launch Partner
Top Fields Constructors Methods
jdk.jpackage.internal.util

pack-priv final Class PrettyPrintHandler

extends Object
implements InvocationHandler
Class Inheritance
All Implemented Interfaces
java.lang.reflect.InvocationHandler
Imports
java.lang.reflect.InvocationHandler, .Method, java.util.HashMap, .Map, javax.xml.stream.XMLStreamWriter

Field Summary

Modifier and TypeField and Description
private int
private static final String
private final Map<Integer, Boolean>
private static final String
private final XMLStreamWriter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object proxy, Method method, Object[] args)

Implements java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result.

private static String
repeat(int d, String s)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

depthback to summary
private int depth
EOLback to summary
private static final String EOL
hasChildElementback to summary
private final Map<Integer, Boolean> hasChildElement
INDENTback to summary
private static final String INDENT
targetback to summary
private final XMLStreamWriter target

Constructor Detail

PrettyPrintHandlerback to summary
public PrettyPrintHandler(XMLStreamWriter target)

Method Detail

invokeback to summary
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable

Implements java.lang.reflect.InvocationHandler.invoke.

Doc from java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.

Annotations
@Override
Exceptions
Throwable:
the exception to throw from the method invocation on the proxy instance. The exception's type must be assignable either to any of the exception types declared in the throws clause of the invoked method or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the invoked method, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown by the method invocation on the proxy instance.
repeatback to summary
private static String repeat(int d, String s)