public class ArticlesExporter
extends java.lang.Object
Constructor and Description |
---|
ArticlesExporter() |
Modifier and Type | Method and Description |
---|---|
static void |
exportFrom(Shop shop)
Converts a stock into a string, displays a file chooser and saves the
file
|
private static void |
saveFile(java.lang.String content,
java.io.File file)
Saves the content into a file
|
private static java.lang.String |
stockToCsvFormat(Shop shop)
Converts the stock of a shop into a string formatted for a CSV file
|
private static java.lang.String stockToCsvFormat(Shop shop)
shop
- private static void saveFile(java.lang.String content, java.io.File file)
content
- file
- public static void exportFrom(Shop shop)
shop
-