public class CsvPrinter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
print(InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
print(InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
static void |
print(String destinationDevice,
InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
print(String destinationDevice,
InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
public static void print(InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream) throws IOException, ConnectionException
sourceDataStream
- The source stream containing the CSV data.templateFilename
- The template to merge the CSV data to.defaultQuantityString
- The quantity, if not specified in the data.outputDataStream
- Optional stream to send data to.IOException
- If an I/O error occurs.ConnectionException
- If it was not possible to connect to the device.public static void print(String destinationDevice, InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream) throws IOException, ConnectionException
destinationDevice
- The connection string.sourceDataStream
- The source stream containing the CSV data.templateFilename
- The template to merge the CSV data to.defaultQuantityString
- The quantity, if not specified in the data.outputDataStream
- Optional stream to send data to.IOException
- If an I/O error occurs.ConnectionException
- If it was not possible to connect to the device.public static void print(InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream, boolean verbose) throws IOException, ConnectionException
sourceDataStream
- The source stream containing the CSV data.templateFilename
- The template to merge the CSV data to.defaultQuantityString
- The quantity, if not specified in the data.outputDataStream
- Optional stream to send data to.verbose
- If true, print a running commentary to standard out.IOException
- If an I/O error occurs.ConnectionException
- If it was not possible to connect to the device.public static void print(String destinationDevice, InputStream sourceDataStream, String templateFilename, String defaultQuantityString, OutputStream outputDataStream, boolean verbose) throws IOException, ConnectionException
destinationDevice
- The connection string.sourceDataStream
- The source stream containing the CSV data.templateFilename
- The template to merge the CSV data to.defaultQuantityString
- The quantity, if not specified in the data.outputDataStream
- Optional stream to send data to.verbose
- If true, print a running commentary to standard out.IOException
- If an I/O error occurs.ConnectionException
- If it was not possible to connect to the device.
© 2016 ZIH Corp. All Rights Reserved.