Interface AddressFormatter
- All Known Implementing Classes:
Address2textFormatter
public interface AddressFormatter
Formatting
Address records. The generated
output layout can be described as:
******************************
* head *
******************************
* *
* body *
* *
******************************
* tail *
******************************-
Method Summary
Modifier and TypeMethodDescriptionvoidprintHead(PrintStream out) When formatting an address list this method will be called exactly once initiating output to the head section.voidprintRecord(Address address, PrintStream out) This method will be called for each address record.voidprintTail(PrintStream out) When formatting an address list this method will be called at last to finish output generation of the tail section.
-
Method Details
-
printHead
When formatting an address list this method will be called exactly once initiating output to the head section.- Parameters:
out- The output stream
-
printRecord
This method will be called for each address record. Corresponding data will populate the body section.- Parameters:
address- The current address record.out- The output stream.
-
printTail
When formatting an address list this method will be called at last to finish output generation of the tail section.- Parameters:
out- The output stream
-