public interface FileUtil
Modifier and Type | Method and Description |
---|---|
String[] |
retrieveFileNames()
Retrieves the names of the files which are stored on the device.
|
String[] |
retrieveFileNames(String[] extensions)
Retrieves the names of the files which are stored on the device.
|
java.util.List<PrinterObjectProperties> |
retrieveObjectsProperties()
Retrieves the properties of the objects which are stored on the device.
|
void |
sendFileContents(String filePath)
Sends the contents of a file to the device.
|
void |
sendFileContents(String filePath,
ProgressMonitor handler)
Sends the contents of a file to the device.
|
void sendFileContents(String filePath) throws ConnectionException
filePath
- the full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.lbl").ConnectionException
- if there is an issue communicating with the device (e.g. the connection is not
open).void sendFileContents(String filePath, ProgressMonitor handler) throws ConnectionException
filePath
- the full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.lbl").handler
- callback to update on progressConnectionException
- if there is an issue communicating with the device (e.g. the connection is not
open).String[] retrieveFileNames() throws ConnectionException, ZebraIllegalArgumentException
ConnectionException
- if there is an error connecting to the device.ZebraIllegalArgumentException
- if there is an error parsing the directory data returned by the device.String[] retrieveFileNames(String[] extensions) throws ConnectionException, ZebraIllegalArgumentException
extensions
.extensions
- the extensions to filter on.ConnectionException
- if there is an error connecting to the device.ZebraIllegalArgumentException
- if there is an error parsing the directory data returned by the device.java.util.List<PrinterObjectProperties> retrieveObjectsProperties() throws ConnectionException, ZebraIllegalArgumentException
ConnectionException
- if there is an error connecting to the device.ZebraIllegalArgumentException
- if there is an error parsing the directory data returned by the device.
© 2017 ZIH Corp. All Rights Reserved.