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

java.lang.Objectcom.jguild.jrpm.io.datatype.STRING
- All Implemented Interfaces:
- DataTypeIf
- public class STRING
- extends java.lang.Object
- implements DataTypeIf
- extends java.lang.Object
A representation of a rpm string data object
| Field Summary | |
private java.lang.String |
data
|
private static org.apache.log4j.Logger |
logger
|
private long |
size
|
| Constructor Summary | |
STRING()
|
|
| Method Summary | |
java.lang.Object |
get(int i)
Gets the i-th element of this object. |
java.lang.String |
getData()
Get the rpm string as a java string |
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 STRING |
readFromStream(java.io.DataInputStream inputStream,
com.jguild.jrpm.io.IndexEntry indexEntry,
long length)
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.String data
size
private long size
| Constructor Detail |
STRING
public STRING()
| Method Detail |
getData
public java.lang.String getData()
- Get the rpm string as a java string
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 STRING readFromStream(java.io.DataInputStream inputStream, com.jguild.jrpm.io.IndexEntry indexEntry, long length) 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.STRING