UniPRT SDK  v1.0.0.0
Utilities Class Reference

Commonly used services that allow for "one liner" or as close to "one liner" service as possible. More...

Static Public Member Functions

static void SendPrintFile (String ipAddress, String fileName)
 
static void SendPrintString (String ipAddress, String data)
 

Detailed Description

Commonly used services that allow for "one liner" or as close to "one liner" service as possible.

Services such as sending a print job, getting printer status.

Remarks
This is where the services that can be achieved with one liners go.
For example:
  • 1.) Send a print job.
    • User Story: I don't want a complicated connection setup...just let me send a print file to the printer ?
  • 2.) Update firmware

Examples

Send print job

package com.test.UniPRTSdk;
import com.UniPRT.Sdk.Utilities.Utilities;
public class OneLinersPrintFile {
public static void main(String[] args) {
String ptrIp = "192.168.1.53";
String fileToSend = "C:\\testFiles\\Hello.pgl";
Utilities.SendPrintFile(ptrIp, fileToSend); // Using SDK Utilties to send print job
}
}