|
|||||||||
| 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 CHAR

java.lang.Objectcom.jguild.jrpm.io.datatype.CHAR
- All Implemented Interfaces:
- DataTypeIf
- public class CHAR
- extends java.lang.Object
- implements DataTypeIf
- extends java.lang.Object
A representation of a rpm char array data object
| Field Summary | |
private char[] |
data
|
private static org.apache.log4j.Logger |
logger
|
private long |
size
|
| Constructor Summary | |
CHAR()
|
|
| Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
char[] |
getData()
Get the rpm char array as a java char array |
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 CHAR |
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 char[] data
size
private long size
| Constructor Detail |
CHAR
public CHAR()
| Method Detail |
getData
public char[] getData()
- Get the rpm char array as a java char array
getDataObject
public java.lang.Object getDataObject()
- Description copied from interface:
DataTypeIf - Get the data as an object.
- Specified by:
getDataObjectin 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 CHAR readFromStream(java.io.DataInputStream inputStream, com.jguild.jrpm.io.IndexEntry indexEntry) throws java.io.IOException
- Constructs a type froma stream
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
getElementCount
public long getElementCount()
- Description copied from interface:
DataTypeIf - Returns the number of elements stored in this data type.
- Specified by:
getElementCountin interfaceDataTypeIf
getSize
public long getSize()
- Description copied from interface:
DataTypeIf - Returns the size of this type in the RPM file
- Specified by:
getSizein 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.CHAR