com.gargoylesoftware.htmlunit
Interface WebConsole.Formatter

Enclosing class:
WebConsole

public static interface WebConsole.Formatter

This interface can be implemented by clients that want to customize the way parameters and objects are logged.


Method Summary
 String parameterAsFloat(Object o)
          Function that is used to print an object as float using format specifiers.
 String parameterAsInteger(Object o)
          Function that is used to print an object as integer using format specifiers.
 String parameterAsString(Object o)
          Function that is used to print an object as string using format specifiers.
 String printObject(Object o)
          Function that is used to print an object to the console.
 

Method Detail

printObject

String printObject(Object o)
Function that is used to print an object to the console.

Parameters:
o - object to be printed
Returns:
a string representation of the passed object

parameterAsString

String parameterAsString(Object o)
Function that is used to print an object as string using format specifiers.

Parameters:
o - object to be printed using string format specifiers
Returns:
a string representation of the passed object

parameterAsInteger

String parameterAsInteger(Object o)
Function that is used to print an object as integer using format specifiers.

Parameters:
o - object to be printed using integer format specifiers
Returns:
a string representation of the passed object

parameterAsFloat

String parameterAsFloat(Object o)
Function that is used to print an object as float using format specifiers.

Parameters:
o - object to be printed using float format specifiers
Returns:
a string representation of the passed object


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.