|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Buffer
Encapsulates a sequence of bytes to be used for I/O operations.
| Field Summary |
|---|
| Fields inherited from interface org.ogf.saga.SagaObject |
|---|
NO_WAIT, WAIT_FOREVER |
| Method Summary | |
|---|---|
void |
close()
Non-blocking close of the buffer object. |
void |
close(float timeoutInSeconds)
Closes the buffer object. |
byte[] |
getData()
Retrieves the buffer data. |
int |
getSize()
Retrieves the current value of the buffer size. |
void |
setData(byte[] data)
Sets the buffer data. |
void |
setSize()
Sets the size of the buffer. |
void |
setSize(int size)
Sets the size of the buffer. |
| Methods inherited from interface org.ogf.saga.SagaObject |
|---|
clone, getId, getSession |
| Method Detail |
|---|
void setSize(int size)
throws BadParameterException,
IncorrectStateException,
NoSuccessException
size - the size.
IncorrectStateException - is thrown when the buffer is closed.
BadParameterException - is thrown when the implementation cannot handle the specified size.
NoSuccessException - is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
void setSize()
throws BadParameterException,
IncorrectStateException,
NoSuccessException
IncorrectStateException - is thrown when the buffer is closed.
BadParameterException - is thrown when the implementation cannot handle the default size.
NoSuccessException - is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
int getSize()
throws IncorrectStateException
IncorrectStateException - is thrown when the buffer is closed.
void setData(byte[] data)
throws BadParameterException,
IncorrectStateException,
NoSuccessException
data - the data.
IncorrectStateException - is thrown when the buffer is closed.
BadParameterException - is thrown when the implementation cannot handle the specified data buffer.
NoSuccessException - is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
byte[] getData()
throws DoesNotExistException,
IncorrectStateException
IncorrectStateException - is thrown when the buffer is closed.
DoesNotExistException - is thrown when the buffer was created with size -1, and no
I/O operation has been done on it yet.void close()
void close(float timeoutInSeconds)
timeoutInSeconds - he timeout in seconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||