|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jguild.jrpm.io.datatype.TypeFactory
public final class TypeFactory
Factory to create rpm data types.
Method Summary | |
---|---|
static BIN |
createBIN(byte[] data)
Create a data object of type BIN |
static CHAR |
createCHAR(char[] data)
Create a data object of type CHAR |
static DataTypeIf |
createFromStream(java.io.DataInputStream inputStream,
IndexEntry indexEntry,
long length)
This method creates a rpm data type out of a input stream and an IndexEntry. |
static I18NSTRING |
createI18NSTRING(java.lang.String[] str)
Create a data object of type I18NSTRING |
static INT16 |
createINT16(short[] data)
Create a data object of type INT16 |
static INT32 |
createINT32(int[] data)
Create a data object of type INT32 |
static INT64 |
createINT64(long[] data)
Create a data object of type INT64 |
static INT8 |
createINT8(byte[] data)
Create a data object of type INT8 |
static NULL |
createNULL(int size)
Create a data object of type NULL |
static STRING_ARRAY |
createSTRING_ARRAY(java.lang.String[] str)
Create a data object of type STRING_ARRAY |
static STRING |
createSTRING(java.lang.String str)
Create a data object of type STRING |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BIN createBIN(byte[] data)
data
- The raw data
public static CHAR createCHAR(char[] data)
data
- The raw data
public static I18NSTRING createI18NSTRING(java.lang.String[] str)
str
- An array of language strings
public static INT8 createINT8(byte[] data)
data
- The raw data
public static INT16 createINT16(short[] data)
data
- The raw data
public static INT32 createINT32(int[] data)
data
- The raw data
public static INT64 createINT64(long[] data)
data
- The raw data
public static NULL createNULL(int size)
size
- The length of the entry
public static STRING createSTRING(java.lang.String str)
str
- A raw string
public static STRING_ARRAY createSTRING_ARRAY(java.lang.String[] str)
str
- Raw strings
public static DataTypeIf createFromStream(java.io.DataInputStream inputStream, IndexEntry indexEntry, long length) throws java.io.IOException
inputStream
- The input streamindexEntry
- The IndexEntry that should be readlength
- The number of bytes to read for string objects
java.io.IOException
- if something was wrong during reading of the input stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |