org.xBaseJ
Class DBTFile

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

public abstract class DBTFile
extends Object

This class is courtesy of the xBaseJ project: http://xbasej.sourceforge.net/ Copyright 1997-2007 - American Coders, LTD - Raleigh NC USA

 American Coders, Ltd
 P. O. Box 97462
 Raleigh, NC  27615  USA
 1-919-846-2014
 http://www.americancoders.com
 

Author:
Joe McVerry, American Coders Ltd.

Field Summary
static byte BYTESPACE
           
static byte BYTEZERO
           
protected  DBF database
           
protected  String extension
           
protected  RandomAccessFile file
           
protected  int memoBlockSize
           
protected  int nextBlock
           
protected  boolean open
           
protected  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

BYTEZERO

public static final byte BYTEZERO
See Also:
Constant Field Values

BYTESPACE

public static final byte BYTESPACE
See Also:
Constant Field Values

file

protected RandomAccessFile file

open

protected boolean open

thefile

protected File thefile

memoBlockSize

protected int memoBlockSize

nextBlock

protected int nextBlock

database

protected DBF database

extension

protected String extension
Constructor Detail

DBTFile

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

DBTFile

public DBTFile(DBF iDBF,
               String name,
               boolean destroy,
               int type)
        throws IOException,
               xBaseJException
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 © 2007-2011. All Rights Reserved.