org::openisis::Rec Class Reference

List of all members.

Public Member Functions

 Rec (int rowid, Field[] fields)
 Rec (int rowid)
int getRowId ()
int getLen ()
Field getField (int i)
Field[] getFields ()
Field[] getFields (int offset, int len)
boolean append (int tag, String value)
boolean append (Field field)
boolean append (Field[] fields)
boolean wrap (Rec record, int tag)
Rec unwrap (int tag)
int v (StringBuffer b, String cpre, String rpre, int tag, int mode, int occ, int len, String rsuf, String csuf)
String v (String cpre, String rpre, int tag, int mode, int occ, int len, String rsuf, String csuf)
String v (String rpre, int tag, int mode, int occ, int len, String rsuf)

Protected Member Functions

void set (int pos, Field f)
Field get (int pos)

Detailed Description

Record implementation of openisis java binding.

Id
Rec.java,v 1.4 2003/04/08 00:20:53 kripke Exp
Version:
Revision
1.4
Author:
Author
kripke

Member Function Documentation

String org::openisis::Rec::v ( String  rpre,
int  tag,
int  mode,
int  occ,
int  len,
String  rsuf 
) [inline]

format fields to a new StringBuffer, return it's content as String. the conditional pre and suf are null here.

Returns:
a new String or the String Db.EMPTY, iff no fields where done.
See also:
v(StringBuffer,String,String,int,int,int,int,String,String)
String org::openisis::Rec::v ( String  cpre,
String  rpre,
int  tag,
int  mode,
int  occ,
int  len,
String  rsuf,
String  csuf 
) [inline]

format fields to a new StringBuffer, return it's content as String.

Returns:
a new String or the String Db.EMPTY, iff no fields where done.
See also:
v(StringBuffer,String,String,int,int,int,int,String,String)
int org::openisis::Rec::v ( StringBuffer  b,
String  cpre,
String  rpre,
int  tag,
int  mode,
int  occ,
int  len,
String  rsuf,
String  csuf 
) [inline]

the field selector. format one or more occurences of a field to a StringBuffer, mimicking the ISIS Vn-operator.

Parameters:
b the StringBuffer to fill
cpre conditional prefix: printed first, if anything is printed
rpre repeated prefix: printed before every occ (but not the first, if mode include PP)
tag the field number (0 = all)
mode several mode bits as defined in Db + optional subfield char
occ a 16bit occ | end << 16. if occ is 0, all occurences are printed. if the end (higher bytes) are 0, only this occ is printed, else all up to incl. end (use Db.LOCC for all).
len a 16bit length constraint | offset << 16 this is passed to Field.v and applied for each occ.
rsuf repeated suffix: printed after every occ (but not the last, if mode include PS)
csuf conditional suffix: printed last, if anything was printed
Returns:
the number of formatted occurences
See also:
Field::v(StringBuffer,int,String,int)

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables

Generated on Tue Mar 30 14:47:17 2010 for IsisReader by  doxygen 1.6.1