org.ogf.saga.file
Interface IOVec

All Superinterfaces:
Buffer, Cloneable, SagaObject

public interface IOVec
extends Buffer

Extends the Buffer interface with lenIn, lenOut, and offset attributes.


Field Summary
 
Fields inherited from interface org.ogf.saga.SagaObject
NO_WAIT, WAIT_FOREVER
 
Method Summary
 int getLenIn()
          Retrieves the current value of the lenIn attribute.
 int getLenOut()
          Retrieves the current value of the lenOut attribute.
 int getOffset()
          Retrieves the current value of the offset attribute.
 void setLenIn(int len)
          Sets the lenIn attribute.
 void setOffset(int offset)
          Sets the offset attribute.
 
Methods inherited from interface org.ogf.saga.buffer.Buffer
close, close, getData, getSize, setData, setSize, setSize
 
Methods inherited from interface org.ogf.saga.SagaObject
clone, getId, getSession
 

Method Detail

setLenIn

void setLenIn(int len)
              throws BadParameterException
Sets the lenIn attribute.

Parameters:
len - the value for the attribute.
Throws:
BadParameterException - is thrown when the lenIn is set to an illegal value (< 0 or larger than size if size != -1).

getLenIn

int getLenIn()
Retrieves the current value of the lenIn attribute.

Returns:
the lenIn value.

getLenOut

int getLenOut()
Retrieves the current value of the lenOut attribute.

Returns:
the lenOut value.

setOffset

void setOffset(int offset)
               throws BadParameterException
Sets the offset attribute.

Parameters:
offset - the value for the attribute.
Throws:
BadParameterException - is thrown when the offset is set to an illegal value (< 0).

getOffset

int getOffset()
Retrieves the current value of the offset attribute.

Returns:
the offset value.


Copyright © 2014 Open Grid Forum. All rights reserved.