ru.smartflex.tools.dbf.mem
Class MemBag

java.lang.Object
  extended by ru.smartflex.tools.dbf.mem.MemBag

public class MemBag
extends java.lang.Object

Mem file container.

Since:
1.05
Author:
galisha

Constructor Summary
protected MemBag(java.io.File memFile, java.lang.String enc)
           
protected MemBag(java.io.InputStream is, java.lang.String enc)
           
 
Method Summary
 java.lang.Object getArrayElement(java.lang.String memName, int index)
          Retrieves the value for one-dimensional array as a Object in the Java programming language
 java.lang.Object getArrayElement(java.lang.String memName, int row, int col)
          Retrieves the value for two-dimensional array as a Object in the Java programming language
 boolean getBoolean(java.lang.String memName)
          Retrieves the value for memory variable as a boolean in the Java programming language
 java.util.Date getDate(java.lang.String memName)
          Retrieves the value for memory variable as a Date in the Java programming language
 double getDouble(java.lang.String memName)
          Retrieves the value for memory variable as a double in the Java programming language
 java.lang.String getString(java.lang.String memName)
          Retrieves the value for memory variable as a String in the Java programming language
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemBag

protected MemBag(java.io.File memFile,
                 java.lang.String enc)

MemBag

protected MemBag(java.io.InputStream is,
                 java.lang.String enc)
Method Detail

getDate

public java.util.Date getDate(java.lang.String memName)
Retrieves the value for memory variable as a Date in the Java programming language

Parameters:
memName - memory name
Returns:
Date

getString

public java.lang.String getString(java.lang.String memName)
Retrieves the value for memory variable as a String in the Java programming language

Parameters:
memName - memory name
Returns:
String

getBoolean

public boolean getBoolean(java.lang.String memName)
Retrieves the value for memory variable as a boolean in the Java programming language

Parameters:
memName - memory name
Returns:
boolean

getDouble

public double getDouble(java.lang.String memName)
Retrieves the value for memory variable as a double in the Java programming language

Parameters:
memName - memory name
Returns:
double

getArrayElement

public java.lang.Object getArrayElement(java.lang.String memName,
                                        int index)
Retrieves the value for one-dimensional array as a Object in the Java programming language

Parameters:
memName - memory array name
index - This parameter is beginning from 1 (not zero)
Returns:
Object

getArrayElement

public java.lang.Object getArrayElement(java.lang.String memName,
                                        int row,
                                        int col)
Retrieves the value for two-dimensional array as a Object in the Java programming language

Parameters:
memName - memory array name
row - This parameter (row) is beginning from 1 (not zero)
col - This parameter (column) is beginning from 1 (not zero)
Returns:
Object