APIdia Launch Partner
Top Fields Constructors Methods
sun.print

public final Class AttributeClass

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, java.util.Objects

Field Summary

Modifier and TypeField and Description
public static final AttributeClass
public static final AttributeClass
private String
private int
private Object
private int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected
AttributeClass(String name, int type, Object value)

Method Summary

Modifier and TypeMethod and Description
private int
convertToInt(byte[] buf)

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public int[]
getArrayOfIntValues()

Returns array of int values.

public String[]
getArrayOfStringValues()

Returns array of String values.

public byte
getByteValue()

Returns single byte value.

public int[]
getIntRangeValue()

Returns 2 int values.

public int[]
getIntResolutionValue()

Returns 3 int values.

public int
getIntValue()

Returns single int value.

public char[]
public String
getName()

Returns attribute name.

public Object
getObjectValue()

Returns raw data.

public String
getStringValue()

Returns String value.

public byte
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private int
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

ATTRIBUTES_CHARSETback to summary
public static final AttributeClass ATTRIBUTES_CHARSET
ATTRIBUTES_NATURAL_LANGUAGEback to summary
public static final AttributeClass ATTRIBUTES_NATURAL_LANGUAGE
myNameback to summary
private String myName
myTypeback to summary
private int myType
myValueback to summary
private Object myValue
nameLenback to summary
private int nameLen
TAG_BOOLback to summary
public static final int TAG_BOOL
TAG_CHARSETback to summary
public static final int TAG_CHARSET
TAG_DATEback to summary
public static final int TAG_DATE
TAG_ENUMback to summary
public static final int TAG_ENUM
TAG_INTback to summary
public static final int TAG_INT
TAG_KEYWORDback to summary
public static final int TAG_KEYWORD
TAG_MEMBER_ATTRNAMEback to summary
public static final int TAG_MEMBER_ATTRNAME
TAG_MIME_MEDIATYPEback to summary
public static final int TAG_MIME_MEDIATYPE
TAG_NAME_LANGUAGEback to summary
public static final int TAG_NAME_LANGUAGE
TAG_NAME_WO_LANGUAGEback to summary
public static final int TAG_NAME_WO_LANGUAGE
TAG_NATURALLANGUAGEback to summary
public static final int TAG_NATURALLANGUAGE
TAG_OCTETback to summary
public static final int TAG_OCTET
TAG_RANGE_INTEGERback to summary
public static final int TAG_RANGE_INTEGER
TAG_RESOLUTIONback to summary
public static final int TAG_RESOLUTION
TAG_TEXT_LANGUAGEback to summary
public static final int TAG_TEXT_LANGUAGE
TAG_TEXT_WO_LANGUAGEback to summary
public static final int TAG_TEXT_WO_LANGUAGE
TAG_UNSUPPORTED_VALUEback to summary
public static final int TAG_UNSUPPORTED_VALUE
TAG_URIback to summary
public static final int TAG_URI

Constructor Detail

AttributeClassback to summary
protected AttributeClass(String name, int type, Object value)

Method Detail

convertToIntback to summary
private int convertToInt(byte[] buf)
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getArrayOfIntValuesback to summary
public int[] getArrayOfIntValues()

Returns array of int values.

getArrayOfStringValuesback to summary
public String[] getArrayOfStringValues()

Returns array of String values.

getByteValueback to summary
public byte getByteValue()

Returns single byte value.

getIntRangeValueback to summary
public int[] getIntRangeValue()

Returns 2 int values.

getIntResolutionValueback to summary
public int[] getIntResolutionValue()

Returns 3 int values. xres, yres, resolution as either dpi or dpcm The resolution is just a single byte of data.

getIntValueback to summary
public int getIntValue()

Returns single int value.

getLenCharsback to summary
public char[] getLenChars()
getNameback to summary
public String getName()

Returns attribute name.

getObjectValueback to summary
public Object getObjectValue()

Returns raw data.

getStringValueback to summary
public String getStringValue()

Returns String value.

getTypeback to summary
public byte getType()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
unsignedByteToIntback to summary
private int unsignedByteToInt(byte b)