|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Binary byte array SongMember
Method Summary | |
String |
getDataType()
Get the type of the data. |
int |
getLength()
Get the length of the value |
byte[] |
getRange(int start,
int length,
byte[] destination,
int pos)
Get a range of the value as a byte array. |
byte[] |
getValue()
Get a copy of the value as a byte array. |
void |
setDataType(String type,
UndoableEditListener undoListener)
Set the type of the data |
void |
setLength(int length,
UndoableEditListener undoListener)
Set the length of the value. |
void |
setRange(int start,
int length,
byte[] source,
int pos,
UndoableEditListener undoListener)
Set a range of the value. |
void |
setValue(byte[] value,
UndoableEditListener undoListener)
Set the value as a byte array. |
Methods inherited from interface com.virtuosotechnologies.asaph.model.SongMember |
getSong, isDefunct |
Method Detail |
public String getDataType()
public void setDataType(String type, UndoableEditListener undoListener)
type
- new data typeundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable editspublic byte[] getValue()
public byte[] getRange(int start, int length, byte[] destination, int pos)
start
- the starting position in the valuelength
- the length of the range to get. Pass -1 to get to the end of the value.destination
- destination array to populate with the result. If null is passed,
getRange allocates a new array the size of the requested range.pos
- position in the destination array for the start of the data. Ignored if
destination is null.
IndexOutOfBoundsException
- start+length was greater than the length of the
value, or the requested range would overflow the destination array.public int getLength()
public void setValue(byte[] value, UndoableEditListener undoListener)
value
- the value of the field as a byte arrayundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable editspublic void setRange(int start, int length, byte[] source, int pos, UndoableEditListener undoListener)
start
- starting position in the valuelength
- the length of the range to change.source
- source byte arraypos
- starting position in the source arrayundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IndexOutOfBoundsException
- pos+length was greater than the length of the
source, start+length was greater than the length of the field value.public void setLength(int length, UndoableEditListener undoListener)
length
- length in bytesundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |