public class CsvPrinter
extends Object
Modifier and Type | Method and Description |
---|---|
static void |
print(java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
print(java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
static void |
print(String destinationDevice,
java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream)
Print template formats using comma separated values as input data.
|
static void |
print(String destinationDevice,
java.io.InputStream sourceDataStream,
String templateFilename,
String defaultQuantityString,
java.io.OutputStream outputDataStream,
boolean verbose)
Print template formats using comma separated values as input data.
|
public static void print(java.io.InputStream sourceDataStream, String templateFilename, String defaultQuantityString, java.io.OutputStream outputDataStream) throws java.io.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.java.io.IOException
- if an I/O error occurs.ConnectionException
- if it was not possible to connect to the device.public static void print(String destinationDevice, java.io.InputStream sourceDataStream, String templateFilename, String defaultQuantityString, java.io.OutputStream outputDataStream) throws java.io.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.java.io.IOException
- if an I/O error occurs.ConnectionException
- if it was not possible to connect to the device.public static void print(java.io.InputStream sourceDataStream, String templateFilename, String defaultQuantityString, java.io.OutputStream outputDataStream, boolean verbose) throws java.io.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.java.io.IOException
- if an I/O error occurs.ConnectionException
- if it was not possible to connect to the device.public static void print(String destinationDevice, java.io.InputStream sourceDataStream, String templateFilename, String defaultQuantityString, java.io.OutputStream outputDataStream, boolean verbose) throws java.io.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.java.io.IOException
- if an I/O error occurs.ConnectionException
- if it was not possible to connect to the device.
© 2017 ZIH Corp. All Rights Reserved.