|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jzos.CatalogSearchField
public class CatalogSearchField
A wrapper around the bytes for a specific field returned from a CatalogSearch request Dataset Entry. This class provides a set of helper methods to convert the raw byte data into the expected data types.
Method Summary | |
---|---|
byte[] |
getBytes()
Return the raw field bytes. |
char |
getChar()
Return a char constructed from the field using the default EBCDIC encoding. |
java.lang.String |
getFString()
Return a String constructed from the entire field using the default EBCDIC encoding. |
java.lang.String[] |
getFStringArray(int len)
Return an array of fixed length Strings constructed from the entire field using the default EBCDIC encoding. |
int |
getInt()
Return an integer constructed from the bytes in the field. |
int[] |
getIntArray(int len)
Return an array of integers constructed from the bytes in the field. |
int |
getLength()
Return the length of the field. |
java.lang.String |
getName()
Return the field name. |
java.lang.String |
getVString()
Return a String constructed from the field, skipping the lengthField. |
java.lang.String[] |
getVStringArray()
Return an array of Strings constructed from the entire field using the default EBCDIC encoding. |
boolean |
isFixedMissing()
Convenience method to test if a fixed field is 0x'FF' filled, indicating that the requested data is missing. |
boolean |
isSuppressed()
Convenience method to test if a field has been suppressed due to insufficient access permission. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public byte[] getBytes()
public int getLength()
public java.lang.String getName()
public char getChar()
java.lang.IllegalStateException
- if the field length != 1.public java.lang.String getFString()
public int getInt()
public int[] getIntArray(int len)
len
- the length of a single fieldpublic java.lang.String[] getFStringArray(int len)
len
- the length of a single fieldpublic java.lang.String[] getVStringArray()
public java.lang.String getVString()
public boolean isFixedMissing()
public boolean isSuppressed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |