Example usage for javax.print DocFlavor DocFlavor

List of usage examples for javax.print DocFlavor DocFlavor

Introduction

In this page you can find the example usage for javax.print DocFlavor DocFlavor.

Prototype

public DocFlavor(String mimeType, String className) 

Source Link

Document

Constructs a new doc flavor object from the given MIME type and representation class name.

Usage

From source file:org.springframework.integration.print.outbound.PrintMessageHandler.java

public PrintMessageHandler(PrintServiceExecutor printServiceExecutor, String mimeType, String className) {

    Assert.hasText(className, "'className' must be neither null nor empty.");
    Assert.hasText(mimeType, "'mimeType' must be neither null nor empty.");

    this.docFlavor = new DocFlavor(mimeType, className);
    this.printServiceExecutor = printServiceExecutor;

}