Discovering Available Streaming Print Services : Print Service « 2D Graphics GUI « Java

Discovering Available Streaming Print Services



import javax.print.DocFlavor;
import javax.print.StreamPrintService;
import javax.print.StreamPrintServiceFactory;

public class Main {
  public static void main(String[] argv) throws Exception {

    StreamPrintServiceFactory[] factories = StreamPrintServiceFactory
        .lookupStreamPrintServiceFactories(null, null);

    factories = StreamPrintServiceFactory.lookupStreamPrintServiceFactories(
        DocFlavor.INPUT_STREAM.GIF, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType());



Related examples in the same category

1.Determining the Capabilities of a Print Service
2.List Print Services
3.Using a Printing Service
4.Using a Streaming Printing Service
5.Discovering Available Print Services
6.Use a factory to create a print service
7.Print a GIF image to any of the print services that support the GIF document flavor