jdk/src/java.desktop/share/classes/javax/print/attribute/standard/JobKOctets.java
changeset 45648 87c997b74bb8
parent 35667 ed476aba94de
child 47196 a3211bb4daff
equal deleted inserted replaced
45533:e6707cd51e28 45648:87c997b74bb8
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    64  * <P>
    64  * <P>
    65  * The size of a doc is computed based on the print data representation class as
    65  * The size of a doc is computed based on the print data representation class as
    66  * specified by the doc's {@link javax.print.DocFlavor DocFlavor}, as
    66  * specified by the doc's {@link javax.print.DocFlavor DocFlavor}, as
    67  * shown in the table below.
    67  * shown in the table below.
    68  *
    68  *
    69  * <TABLE BORDER=1 CELLPADDING=2 CELLSPACING=1 SUMMARY="Table showing computation of doc sizes">
    69  * <table class="striped">
       
    70  * <caption>Table showing computation of doc sizes</caption>
       
    71  * <thead>
    70  * <TR>
    72  * <TR>
    71  * <TH>Representation Class</TH>
    73  * <TH>Representation Class</TH>
    72  * <TH>Document Size</TH>
    74  * <TH>Document Size</TH>
    73  * </TR>
    75  * </TR>
       
    76  * </thead>
       
    77  * <tbody>
    74  * <TR>
    78  * <TR>
    75  * <TD>byte[]</TD>
    79  * <TD>byte[]</TD>
    76  * <TD>Length of the byte array</TD>
    80  * <TD>Length of the byte array</TD>
    77  * </TR>
    81  * </TR>
    78  * <TR>
    82  * <TR>
   105  * </TR>
   109  * </TR>
   106  * <TR>
   110  * <TR>
   107  * <TD>java.awt.print.Pageable</TD>
   111  * <TD>java.awt.print.Pageable</TD>
   108  * <TD>Implementation dependent&#42;</TD>
   112  * <TD>Implementation dependent&#42;</TD>
   109  * </TR>
   113  * </TR>
       
   114  * </tbody>
   110  * </TABLE>
   115  * </TABLE>
   111  * <P>
   116  * <P>
   112  * &#42; In these cases the Print Service itself generates the print data sent
   117  * &#42; In these cases the Print Service itself generates the print data sent
   113  * to the printer. If the Print Service supports the JobKOctets attribute, for
   118  * to the printer. If the Print Service supports the JobKOctets attribute, for
   114  * these cases the Print Service itself must calculate the size of the print
   119  * these cases the Print Service itself must calculate the size of the print