public class NumberPrintHandler extends JsonPrintHandler
m_printer| Constructor and Description |
|---|
NumberPrintHandler(JsonPrinter printer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.lang.Object o)
Indicates whether this handler can take care of printing a particular
object.
|
ca.uqac.lif.json.JsonNumber |
handle(java.lang.Object o)
Prints an object
|
resetpublic NumberPrintHandler(JsonPrinter printer)
public boolean canHandle(java.lang.Object o)
PrintHandlero - The objectpublic ca.uqac.lif.json.JsonNumber handle(java.lang.Object o)
throws PrintException
PrintHandlero - The object to be printedPrintException - Thrown if the object cannot be printedCopyright © Sylvain HallĂ©. All Rights Reserved.