Class Address2textFormatter
java.lang.Object
de.hdm_stuttgart.mi.sd1.htmlformat.Address2textFormatter
- All Implemented Interfaces:
AddressFormatter
Formatting
Address
records-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
printHead
(PrintStream out) When formatting an address list this method will be called exactly once initiating output to the head section.void
printRecord
(Address address, PrintStream out) This method will be called for each address record.void
printTail
(PrintStream out) When formatting an address list this method will be called at last to finish output generation of the tail section.
-
Constructor Details
-
Address2textFormatter
public Address2textFormatter()
-
-
Method Details
-
printHead
Description copied from interface:AddressFormatter
When formatting an address list this method will be called exactly once initiating output to the head section.- Specified by:
printHead
in interfaceAddressFormatter
- Parameters:
out
- The output stream
-
printRecord
Description copied from interface:AddressFormatter
This method will be called for each address record. Corresponding data will populate the body section.- Specified by:
printRecord
in interfaceAddressFormatter
- Parameters:
address
- The current address record.out
- The output stream.
-
printTail
Description copied from interface:AddressFormatter
When formatting an address list this method will be called at last to finish output generation of the tail section.- Specified by:
printTail
in interfaceAddressFormatter
- Parameters:
out
- The output stream
-