public final class RequestingUserName extends TextSyntax implements PrintRequestAttribute
JobOriginatingUserName属性。 
       这意味着支持使用此属性指定用户名的服务也应该在作业的属性集中报告JobOriginatingUserName。 
       请注意,许多打印服务可能有一种独立验证用户名的方式,因此可能会声明对请求用户名的支持,但实际上会报告由服务认证的用户名,而不是通过此属性指定的用户名。 
        IPP兼容性:字符串值给出IPP名称值。 该地区提供IPP自然语言。 由getName()返回的类别名称提供IPP属性名称。 
| Constructor and Description | 
|---|
| RequestingUserName(String userName, Locale locale)
              使用给定的用户名和区域设置构造一个新的请求用户名属性。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)
              返回此请求用户名属性是否等同于传入的对象。 
             | 
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
getLocale, getValue, hashCode, toStringpublic RequestingUserName(String userName, Locale locale)
userName - 用户名。 
           locale - 文本字符串的自然语言。 
            null解释为默认的语言环境作为由返回Locale.getDefault() 
           NullPointerException - (未选中的异常)如果 
            userName为空,则抛出。 
           public boolean equals(Object object)
object不为空。 object是一个RequestingUserName类的实例。 object的底层字符串是相等的。 object的区域设置相等。 equals在 
            TextSyntax 
           object - 要对比的对象。 
           object相当于此请求用户名属性,则为true,否则为false。 
           Object.hashCode() , HashMap 
           public final 类<? extends Attribute> getCategory()
对于RequestingUserName类,该类别是RequestingUserName类本身。
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.