|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.CompositeData.Data
public static class CompositeData.Data
This class is used to provide all data when constructing a CompositeData object. Doing things this way keeps all internal data members self-consistent.
Constructor Summary | |
---|---|
CompositeData.Data()
Constructor. |
Method Summary | |
---|---|
void |
addChar(byte b)
Add an 8 bit byte (char) to the data. |
void |
addChar(byte[] b)
Add an array of 8 bit bytes (chars) to the data. |
void |
addDouble(double d)
Add a 64 bit double to the data. |
void |
addDouble(double[] d)
Add an array of 64 bit doubles to the data. |
void |
addFloat(float f)
Add a 32 bit float to the data. |
void |
addFloat(float[] f)
Add an array of 32 bit floats to the data. |
void |
addInt(int i)
Add a signed 32 bit integer to the data. |
void |
addInt(int[] i)
Add an array of signed 32 bit integers to the data. |
void |
addLong(long l)
Add a 64 bit long to the data. |
void |
addLong(long[] l)
Add an array of 64 bit longs to the data. |
void |
addN(int N)
This method adds an "N" or multiplier value to the data. |
void |
addShort(short s)
Add a 16 bit short to the data. |
void |
addShort(short[] s)
Add an array of 16 bit shorts to the data. |
void |
addString(java.lang.String s)
Add a string to the data. |
void |
addString(java.lang.String[] s)
Add an array of strings to the data. |
void |
addUchar(byte b)
Add an unsigned 8 bit byte (uchar) to the data. |
void |
addUchar(byte[] b)
Add an array of unsigned 8 bit bytes (uchars) to the data. |
void |
addUint(int i)
Add an unsigned 32 bit integer to the data. |
void |
addUint(int[] i)
Add an array of unsigned 32 bit integers to the data. |
void |
addUlong(long l)
Add an unsigned 64 bit long to the data. |
void |
addUlong(long[] l)
Add an array of unsigned 64 bit longs to the data. |
void |
addUshort(short s)
Add an unsigned 16 bit short to the data. |
void |
addUshort(short[] s)
Add an array of unsigned 16 bit shorts to the data. |
int |
getDataSize()
This method gets the raw data size in bytes. |
int |
getPadding()
This method gets the padding (in bytes). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeData.Data()
Method Detail |
---|
public int getDataSize()
public int getPadding()
public void addN(int N)
N
- N or multiplier valuepublic void addInt(int i)
i
- integer to add.public void addInt(int[] i)
i
- array of integers to add.public void addUint(int i)
i
- unsigned integer to add.public void addUint(int[] i)
i
- array of unsigned integers to add.public void addShort(short s)
s
- short to add.public void addShort(short[] s)
s
- array of shorts to add.public void addUshort(short s)
s
- unsigned short to add.public void addUshort(short[] s)
s
- array of unsigned shorts to add.public void addLong(long l)
l
- long to add.public void addLong(long[] l)
l
- array of longs to add.public void addUlong(long l)
l
- unsigned long to add.public void addUlong(long[] l)
l
- array of unsigned longs to add.public void addChar(byte b)
b
- byte to add.public void addChar(byte[] b)
b
- array of bytes to add.public void addUchar(byte b)
b
- unsigned byte to add.public void addUchar(byte[] b)
b
- array of unsigned bytes to add.public void addFloat(float f)
f
- float to add.public void addFloat(float[] f)
f
- array of floats to add.public void addDouble(double d)
d
- double to add.public void addDouble(double[] d)
d
- array of doubles to add.public void addString(java.lang.String s)
s
- string to add.public void addString(java.lang.String[] s)
s
- array of strings to add.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |