org.xBaseJ
Class DbaseUtils

java.lang.Object
  extended by org.xBaseJ.DbaseUtils

public class DbaseUtils
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.

Constructor Summary
DbaseUtils()
           
 
Method Summary
static void closexBaseJProperty()
          use this if you need to reset the property file which is usually left open
static void copyFile(String inputFile, String outputFile)
           
static boolean dontTrimFields()
          returns true if org.xBaseJ.property dontTrimFields is "true" or "yes"
static double doubleDate(DateField d)
           
static double doubleDate(String s)
           
static boolean fieldFilledWithSpaces()
          returns true if org.xBaseJ.property fieldFilled is "true" or "yes"
static String getxBaseJProperty(String inString)
           
static String normalize(String inString)
          normlizes the string to remove XML characters.
static void setxBaseJProperty(String inName, String inValue)
           
static boolean useSharedLocks()
           
static int x86(int in)
           
static long x86(long in)
           
static short x86(short in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbaseUtils

public DbaseUtils()
Method Detail

x86

public static long x86(long in)

x86

public static int x86(int in)

x86

public static short x86(short in)

doubleDate

public static double doubleDate(DateField d)

doubleDate

public static double doubleDate(String s)

normalize

public static String normalize(String inString)
normlizes the string to remove XML characters.

Parameters:
inString - String to be normalized
Returns:
String normalized String

getxBaseJProperty

public static String getxBaseJProperty(String inString)
                                throws IOException
Throws:
IOException

setxBaseJProperty

public static void setxBaseJProperty(String inName,
                                     String inValue)
                              throws IOException
Throws:
IOException

dontTrimFields

public static boolean dontTrimFields()
returns true if org.xBaseJ.property dontTrimFields is "true" or "yes"

Returns:
boolean false or true

fieldFilledWithSpaces

public static boolean fieldFilledWithSpaces()
returns true if org.xBaseJ.property fieldFilled is "true" or "yes"

Returns:
boolean false or true

closexBaseJProperty

public static void closexBaseJProperty()
use this if you need to reset the property file which is usually left open


copyFile

public static void copyFile(String inputFile,
                            String outputFile)
                     throws IOException
Throws:
IOException

useSharedLocks

public static boolean useSharedLocks()
Returns:
boolean true if property says use shared locks


Copyright © 2007-2011. All Rights Reserved.