public class IdentityPrintHandler extends java.lang.Object implements PrintHandler<java.lang.Object>
| Constructor and Description |
|---|
IdentityPrintHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.lang.Object o)
Indicates whether this handler can take care of printing a particular
object.
|
java.lang.Object |
handle(java.lang.Object o)
Prints an object
|
void |
reset()
Resets the internal state of the handler
|
public boolean canHandle(java.lang.Object o)
PrintHandlercanHandle in interface PrintHandler<java.lang.Object>o - The objectpublic java.lang.Object handle(java.lang.Object o)
throws PrintException
PrintHandlerhandle in interface PrintHandler<java.lang.Object>o - The object to be printedPrintException - Thrown if the object cannot be printedpublic void reset()
PrintHandlerreset in interface PrintHandler<java.lang.Object>Copyright © Sylvain HallĂ©. All Rights Reserved.