|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.util.PrintWriter_APDUListener
public class PrintWriter_APDUListener
An APDUListener printing to a PrintWriter. Outputs
progress messages from the global platform manager to a PrintWriter. The generated output can be adjusted in verbosity. By
default full APDU's are printed. With print_dots one can optionally switch to printing one dot per APDU.
The output PrintWriter can be null, then nothing is printed.
| Field Summary | |
|---|---|
private boolean |
dots_only
Control wether to print full APDU's or dots only. |
private PrintWriter |
out
Local reference the channel we print to. |
| Constructor Summary | |
|---|---|
PrintWriter_APDUListener(PrintWriter out)
Create a new APDUListener printing on out. |
|
| Method Summary | |
|---|---|
void |
exchangedAPDU(CommandAPDU c,
ResponseAPDU r)
Print a command/response APDU pair to the configured channel. |
void |
print_dots(boolean dots_only)
Switch between printing full APDU's or dots only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PrintWriter out
private boolean dots_only
print_dots.
| Constructor Detail |
|---|
public PrintWriter_APDUListener(PrintWriter out)
out. If out is
null printing will be disabled.
out - channel to print to, pass null to disable printing.| Method Detail |
|---|
public void print_dots(boolean dots_only)
dots_only - if true, print full APDU's subsequently;
otherwise print dots only
public void exchangedAPDU(CommandAPDU c,
ResponseAPDU r)
print_dots(false))
and one dot per APDU only (set with print_dots(true)).
exchangedAPDU in interface cardservices.APDUListenerc - command APDU to printr - response APDU to print
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||