org.xBaseJ
Class DBTFile

java.lang.Object
  extended byorg.xBaseJ.DBTFile
Direct Known Subclasses:
DBT_fpt, DBT_iii, DBT_iv

public abstract class DBTFile
extends Object


Field Summary
static byte BYTESPACE
           
static byte BYTEZERO
           
 DBF database
           
 String extension
           
 RandomAccessFile file
           
 int memoBlockSize
           
 int nextBlock
           
 boolean open
           
 File thefile
           
 
Constructor Summary
DBTFile(DBF iDBF, boolean readonly, int type)
           
DBTFile(DBF iDBF, String name, boolean destroy, int type)
           
 
Method Summary
 void close()
           
abstract  byte[] readBytes(byte[] input)
           
 void rename(String name)
           
 void seek(int pos)
           
abstract  void setNextBlock()
           
abstract  byte[] write(String value, int originalSize, boolean write, byte[] originalPos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public RandomAccessFile file

open

public boolean open

thefile

public File thefile

memoBlockSize

public int memoBlockSize

nextBlock

public int nextBlock

database

public DBF database

BYTEZERO

public static final byte BYTEZERO
See Also:
Constant Field Values

BYTESPACE

public static final byte BYTESPACE
See Also:
Constant Field Values

extension

public String extension
Constructor Detail

DBTFile

public DBTFile(DBF iDBF,
               boolean readonly,
               int type)
        throws IOException,
               xBaseJException,
               IOException

DBTFile

public DBTFile(DBF iDBF,
               String name,
               boolean destroy,
               int type)
        throws IOException,
               xBaseJException
Method Detail

rename

public void rename(String name)
            throws IOException
Throws:
IOException

setNextBlock

public abstract void setNextBlock()
                           throws IOException
Throws:
IOException

readBytes

public abstract byte[] readBytes(byte[] input)
                          throws IOException,
                                 xBaseJException
Throws:
IOException
xBaseJException

write

public abstract byte[] write(String value,
                             int originalSize,
                             boolean write,
                             byte[] originalPos)
                      throws IOException,
                             xBaseJException
Throws:
IOException
xBaseJException

seek

public void seek(int pos)
          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


Copyright 1997-2007 American Coders Ltd. All Rights Reserved.