public final class JobHoldUntil extends DateTimeSyntax implements PrintRequestAttribute, PrintJobAttribute
如果该属性的值指定一个日期的时间是在未来,打印机应该添加JobStateReason
值job_hold_until_specified到工作的JobStateReasons
属性,必须把工作的pending_held状态,不得安排印刷工作直到指定的日期时间到来。
当指定的时间到来时,打印机必须删除JobStateReason
值job_hold_until_specified从工作的JobStateReasons
属性,如果存在。如果没有其他的工作状态的原因,保持工作的pending_held状态,打印机必须考虑作为一个移动的工作,待国家处理候选人的工作。
如果指定的日期时间已经通过,则该作业必须立即进行处理的候选。因此,一个办法立刻使工作成为候选人处理是指定jobholduntil属性构建了这样(指1970年1月1日00:00:00 GMT时间):
jobholduntil立即=新jobholduntil(新的日期(0));
如果客户没有在打印要求和打印机支持此属性这个属性电源,打印机必须使用其默认值(依赖于实现的)jobholduntil在作业提交时间(不像大多数工作模板的属性,如有必要在作业处理时间)。
从这一年,不同的价值观构建一个jobholduntil属性的月,日,小时,分钟,等等,用Calendar
对象构造一个Date
对象,然后使用Date
对象构建jobholduntil属性。将一个jobholduntil属性的一年,独立的价值观月,日,小时,分钟,等等,创造一个Calendar
对象并设置它的属性Date
jobholduntil。
聚丙烯的相容性:虽然IPP支持“工作直到”属性指定一个关键字,IPP不支持“工作直到”属性指定一个日期和时间。然而,日期和时间可以转化为一个标准的IPP关键词具有一定的精度损失;例如,与今天的日期和当地时间9:00 jobholduntil价值可转换为标准的IPP关键词“夜”。返回getName()
类别名称为IPP的属性名称。
Constructor and Description |
---|
JobHoldUntil(Date dateTime)
构建一个新的工作,直到与给定的
Date 日期时间属性值。
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
返回此作业是否保持,直到属性相当于传递的对象。
|
类<? extends Attribute> |
getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
String |
getName()
获取此属性值的类别的名称,即一个实例。
|
getValue, hashCode, toString
public JobHoldUntil(Date dateTime)
Date
日期时间属性值。
dateTime
-
Date
价值。
NullPointerException
-(unchecked异常)如果
dateTime
空抛。
public boolean equals(Object object)
equals
方法重写,继承类
DateTimeSyntax
object
对象比较。
object
相当于这个工作直到属性真,否则为假。
Object.hashCode()
,
HashMap
public final 类<? extends Attribute> getCategory()
jobholduntil类,类类jobholduntil本身。
getCategory
接口
Attribute
java.lang.Class
类实例。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.