|
|||||||||
| Home >> All >> com >> jguild >> jrpm >> io >> [ datatype overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.jguild.jrpm.io.datatype
Class NULL

java.lang.Objectcom.jguild.jrpm.io.datatype.NULL
- All Implemented Interfaces:
- DataTypeIf
- public class NULL
- extends java.lang.Object
- implements DataTypeIf
- extends java.lang.Object
A representation of a rpm null array data object
| Field Summary | |
private java.lang.Object[] |
data
|
private static org.apache.log4j.Logger |
logger
|
private long |
size
|
| Constructor Summary | |
NULL()
|
|
| Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
java.lang.Object[] |
getData()
Get the rpm NULL array as a java object array of null objects |
java.lang.Object |
getDataObject()
Get the data as an object. |
long |
getElementCount()
Returns the number of elements stored in this data type. |
long |
getSize()
Returns the size of this type in the RPM file |
com.jguild.jrpm.io.constant.RPMIndexType |
getType()
Get the type of this data object |
boolean |
isArray()
Returns TRUE if this object contains an array or FALSE if it is not an array. |
static NULL |
readFromStream(java.io.DataInputStream inputStream,
com.jguild.jrpm.io.IndexEntry indexEntry)
Constructs a type froma stream |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
logger
private static final org.apache.log4j.Logger logger
data
private java.lang.Object[] data
size
private long size
| Constructor Detail |
NULL
public NULL()
| Method Detail |
isArray
public boolean isArray()
- Description copied from interface:
DataTypeIf - Returns TRUE if this object contains an array
or FALSE if it is not an array.
- Specified by:
isArrayin interfaceDataTypeIf
getData
public java.lang.Object[] getData()
- Get the rpm NULL array as a java object array of null objects
getDataObject
public java.lang.Object getDataObject()
- Description copied from interface:
DataTypeIf - Get the data as an object.
- Specified by:
getDataObjectin interfaceDataTypeIf
getSize
public long getSize()
- Description copied from interface:
DataTypeIf - Returns the size of this type in the RPM file
- Specified by:
getSizein interfaceDataTypeIf
getType
public com.jguild.jrpm.io.constant.RPMIndexType getType()
- Description copied from interface:
DataTypeIf - Get the type of this data object
- Specified by:
getTypein interfaceDataTypeIf
readFromStream
public static NULL readFromStream(java.io.DataInputStream inputStream, com.jguild.jrpm.io.IndexEntry indexEntry) throws java.io.IOException
- Constructs a type froma stream
getElementCount
public long getElementCount()
- Description copied from interface:
DataTypeIf - Returns the number of elements stored in this data type.
- Specified by:
getElementCountin interfaceDataTypeIf
get
public java.lang.Object get(int i)
- Description copied from interface:
DataTypeIf - Gets the i-th element of this object.
- Specified by:
getin interfaceDataTypeIf
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> jguild >> jrpm >> io >> [ datatype overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.jguild.jrpm.io.datatype.NULL