Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/albfernandez/javadbf
/ functions
Functions
397 in github.com/albfernandez/javadbf
⨍
Functions
397
◇
Types & classes
91
↓ 308 callers
Method
assertColumnDefinition
(DBFField field, String columnName, DBFDataType type, int length, int decimal)
src/test/java/com/linuxense/javadbf/testutils/AssertUtils.java:31
↓ 298 callers
Method
fromCode
Gets the DBFDataType from the code used in the file @param code the code used by dbase @return The DBFDataType from the code used in the file
src/main/java/com/linuxense/javadbf/DBFDataType.java:183
↓ 141 callers
Method
close
Closes silently a #{@link java.io.Closeable}. it can be null or throws an exception, will be ignored. @param closeable The item to close
src/main/java/com/linuxense/javadbf/DBFUtils.java:358
↓ 96 callers
Method
forName
(String name)
src/main/java/com/linuxense/javadbf/DBFCharsetHelper.java:125
↓ 57 callers
Method
addRecord
Add a record. @param values fields of the record
src/main/java/com/linuxense/javadbf/DBFWriter.java:246
↓ 50 callers
Method
setName
Sets the name of the field. @param name of the field as String. @since 0.3.3.1
src/main/java/com/linuxense/javadbf/DBFField.java:340
↓ 49 callers
Method
setType
Set the type for this field @param type The type for this field @throws IllegalArgumentException if type is not write supported
src/main/java/com/linuxense/javadbf/DBFField.java:429
↓ 45 callers
Method
setLength
Set Length of the field. This method should be called before calling setDecimalCount(). @param length of the field as int.
src/main/java/com/linuxense/javadbf/DBFField.java:406
↓ 41 callers
Method
nextRecord
Reads the returns the next row in the DBF stream. @return The next row as an Object array. Types of the elements these arrays follow the con
src/main/java/com/linuxense/javadbf/DBFReader.java:311
↓ 40 callers
Method
getName
Returns the name of the field. @return Name of the field as String.
src/main/java/com/linuxense/javadbf/DBFField.java:301
↓ 38 callers
Method
setFields
Sets fields definition. To keep maximum compatibility a maximum of 255 columns should be used. https://docs.microsoft.com/en-us/previous-versions/visu
src/main/java/com/linuxense/javadbf/DBFWriter.java:184
↓ 31 callers
Method
getType
Gets the type for this field @return The type for this field
src/main/java/com/linuxense/javadbf/DBFField.java:420
↓ 29 callers
Method
getLength
Returns field length. @return field length as int.
src/main/java/com/linuxense/javadbf/DBFField.java:312
↓ 23 callers
Method
getFieldCount
Returns the number of field in the DBF. @return number of fields in the DBF file
src/main/java/com/linuxense/javadbf/DBFReader.java:301
↓ 23 callers
Method
getHeader
()
src/main/java/com/linuxense/javadbf/DBFReader.java:561
↓ 21 callers
Method
nextRow
Reads the returns the next row in the DBF stream. @return The next row as an DBFRow
src/main/java/com/linuxense/javadbf/DBFReader.java:404
↓ 19 callers
Method
setDecimalCount
Sets the decimal place size of the field. Before calling this method the size of the field should be set by calling setFieldLength(). @param si
src/main/java/com/linuxense/javadbf/DBFField.java:448
↓ 17 callers
Method
getBytes
Reads the data as byte[] @param columnName columnName @return the data as byte[]
src/main/java/com/linuxense/javadbf/DBFRow.java:189
↓ 16 callers
Method
getField
Returns the asked Field. In case of an invalid index, it returns a ArrayIndexOutofboundsException. @param index Index of the field. Index of the firs
src/main/java/com/linuxense/javadbf/DBFReader.java:290
↓ 16 callers
Method
write
Writes the set data to the OutputStream. @param out the output stream @deprecated use {@link #DBFWriter(OutputStream)} constructor and call close
src/main/java/com/linuxense/javadbf/DBFWriter.java:457
↓ 15 callers
Method
getString
Reads the data as string @param columnName columnName @return the value converted to String
src/main/java/com/linuxense/javadbf/DBFRow.java:96
↓ 14 callers
Method
testReadDBFFile
(String fileName, int expectedColumns, int expectedRows)
src/test/java/com/linuxense/javadbf/ReadDBFAssert.java:35
↓ 14 callers
Method
textPadding
pad a string and convert it to byte[] to write to a dbf file (by default, add whitespaces to the end of the string) @param text The text to be padded
src/main/java/com/linuxense/javadbf/DBFUtils.java:195
↓ 14 callers
Method
toString
()
src/main/java/com/linuxense/javadbf/DBFField.java:483
↓ 13 callers
Method
littleEndian
Convert a short value to littleEndian @param value value to be converted @return littleEndian short
src/main/java/com/linuxense/javadbf/DBFUtils.java:152
↓ 12 callers
Method
getCharset
Gets the charset used to read and write files. @return charset used to read and write files
src/main/java/com/linuxense/javadbf/DBFBase.java:46
↓ 11 callers
Method
createDate
(int year, int month, int day)
src/test/java/com/linuxense/javadbf/testutils/DateUtils.java:26
↓ 11 callers
Method
getDecimalCount
Returns the decimal part. This is applicable only if the field type if of numeric in nature. If the field is specified to hold integral values
src/main/java/com/linuxense/javadbf/DBFField.java:327
↓ 11 callers
Method
setCharset
(Charset charset)
src/main/java/com/linuxense/javadbf/DBFBase.java:61
↓ 11 callers
Method
toBoolean
Convert LOGICAL (L) byte to boolean value @param t_logical The byte value as stored in the file @return The boolean value
src/main/java/com/linuxense/javadbf/DBFUtils.java:319
↓ 10 callers
Method
close
In sync mode, write the header and close the file
src/main/java/com/linuxense/javadbf/DBFWriter.java:336
↓ 10 callers
Method
export
(DBFReader reader, File file)
src/test/java/com/linuxense/javadbf/testutils/DbfToTxtTest.java:38
↓ 10 callers
Method
generateFields
()
src/test/java/com/linuxense/javadbf/DBFWriterStreamTest.java:226
↓ 10 callers
Method
getColumnIndex
(String columnName)
src/main/java/com/linuxense/javadbf/DBFRow.java:44
↓ 10 callers
Method
getDBFCodeForCharset
gets the DBF code for a given Java charset @param charset the Java charset @return the DBF code, 0 if unknown
src/main/java/com/linuxense/javadbf/DBFCharsetHelper.java:138
↓ 10 callers
Method
readLittleEndianShort
Read a littleEndian short(16 bits) from DataInput @param in DataInput to read from @return short value of next 16 bits as littleEndian @throws IOExcep
src/main/java/com/linuxense/javadbf/DBFUtils.java:111
↓ 10 callers
Method
readText
Only for testing purposes @param block position of first block of this field @return text contained in the block
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:133
↓ 10 callers
Method
setMemoFile
Sets the memo file (DBT or FPT) where memo fields will be readed. If no file is provided, then this fields will be null. @param file the file containi
src/main/java/com/linuxense/javadbf/DBFReader.java:587
↓ 9 callers
Method
readLittleEndianInt
Read a littleEndian integer(32b its) from DataInput @param in DataInput to read from @return int value of next 32 bits as littleEndian @throws IOExcep
src/main/java/com/linuxense/javadbf/DBFUtils.java:97
↓ 8 callers
Method
getDouble
Reads the data as Double @param columnName columnName @return the data as Double
src/main/java/com/linuxense/javadbf/DBFRow.java:251
↓ 7 callers
Method
contains
Checks that a byte array contains some specific byte @param array The array to search in @param value The byte to search for @return true if the array
src/main/java/com/linuxense/javadbf/DBFUtils.java:272
↓ 7 callers
Method
isPureAscii
Checks if a string is pure Ascii @param stringToCheck the string @return true if is ascci
src/main/java/com/linuxense/javadbf/DBFUtils.java:288
↓ 7 callers
Method
isSystem
Checks if is a system field @return true if it is a system field
src/main/java/com/linuxense/javadbf/DBFField.java:465
↓ 7 callers
Method
removeSpaces
Remove all spaces (32) found in the data. @param array the data @return the data cleared of whitespaces
src/main/java/com/linuxense/javadbf/DBFUtils.java:122
↓ 7 callers
Method
seek
(long pos)
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:71
↓ 7 callers
Method
trimRightSpaces
Trims right spaces from string @param b_array the string @return the string without right spaces
src/main/java/com/linuxense/javadbf/DBFUtils.java:333
↓ 7 callers
Method
write
Writes the content of DBFField object into the stream as per DBF format specifications. @param out OutputStream @param charset dbf file's charset @th
src/main/java/com/linuxense/javadbf/DBFField.java:274
↓ 6 callers
Method
doubleFormating
Format a double number to write to a dbf file @param num number to format @param charset charset to use @param fieldLength field length @param sizeDec
src/main/java/com/linuxense/javadbf/DBFUtils.java:243
↓ 6 callers
Method
getCharsetByByte
Gets Java charset from DBF code @param b the code stored in DBF file @return Java charset, null if unknown.
src/main/java/com/linuxense/javadbf/DBFCharsetHelper.java:47
↓ 5 callers
Method
TRUNCATE_VALUE
(long value, int bits)
src/main/java/com/linuxense/javadbf/DBFExploder.java:159
↓ 5 callers
Method
getRecordCount
Returns the number of records in the DBF. This number includes deleted (hidden) records @return number of records in the DBF file.
src/main/java/com/linuxense/javadbf/DBFReader.java:268
↓ 5 callers
Method
getUsedCharset
()
src/main/java/com/linuxense/javadbf/DBFHeader.java:333
↓ 5 callers
Method
read
(byte[] b)
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:80
↓ 5 callers
Method
readData
(int block, DBFDataType type)
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:145
↓ 5 callers
Method
writeToConsole
(File file)
src/test/java/com/linuxense/javadbf/testutils/DbfToTxtTest.java:60
↓ 4 callers
Method
getObject
Read the column as original type @param columnName columnName @return the original value unconverted
src/main/java/com/linuxense/javadbf/DBFRow.java:74
↓ 4 callers
Method
isDB7
()
src/main/java/com/linuxense/javadbf/DBFHeader.java:200
↓ 4 callers
Method
pkexplode
(byte[] pInBuffer, DBFStorage out, int outSize)
src/main/java/com/linuxense/javadbf/DBFExploder.java:165
↓ 4 callers
Method
readAllBytes
(File file)
src/main/java/com/linuxense/javadbf/DBFUtils.java:398
↓ 4 callers
Method
setUsedCharset
(Charset charset)
src/main/java/com/linuxense/javadbf/DBFHeader.java:336
↓ 4 callers
Method
skip
Safely skip bytesToSkip bytes (in some bufferd scenarios skip doesn't really skip all requested bytes) @param bytesToSkip number of bytes to skip @thr
src/main/java/com/linuxense/javadbf/DBFReader.java:540
↓ 3 callers
Method
addByte
(byte b, int pos)
src/main/java/com/linuxense/javadbf/DBFExploder.java:404
↓ 3 callers
Method
getInt
Reads the data as int @param columnName columnName @return the data as int
src/main/java/com/linuxense/javadbf/DBFRow.java:311
↓ 3 callers
Method
isFPT
()
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:124
↓ 3 callers
Method
print
(DBFRow row, int fieldCount)
src/test/java/com/linuxense/javadbf/bug49/Bug49Test.java:48
↓ 3 callers
Method
setDataType
Sets the data type of the field. @param type of the field. One of the following:<br> C, L, N, F, D, M @deprecated This method i
src/main/java/com/linuxense/javadbf/DBFField.java:530
↓ 3 callers
Method
setFieldLength
Length of the field. This method should be called before calling setDecimalCount(). @param length of the field as int. @deprecated use {@link #set
src/main/java/com/linuxense/javadbf/DBFField.java:516
↓ 3 callers
Method
setFieldName
@param value the name of the field @deprecated This method is deprecated and is replaced by {@link #setName(String)}.
src/main/java/com/linuxense/javadbf/DBFField.java:539
↓ 3 callers
Method
setTrimRightSpaces
Determine if character fields should be right trimmed (default true) @param trimRightSpaces if reading fields should trim right spaces
src/main/java/com/linuxense/javadbf/DBFReader.java:576
↓ 3 callers
Method
skip
Safely skip bytesToSkip bytes (in some bufferd scenarios skip doesn't really skip all requested bytes) @param inputStream the Inputstream @param bytes
src/main/java/com/linuxense/javadbf/DBFUtils.java:374
↓ 2 callers
Method
addRecord
(Object[] values)
src/main/java/com/linuxense/javadbf/DBFLockWriter.java:43
↓ 2 callers
Method
adjustLengthForLongCharSupport
(DBFField field)
src/main/java/com/linuxense/javadbf/DBFField.java:254
↓ 2 callers
Method
close
()
src/main/java/com/linuxense/javadbf/DBFReader.java:613
↓ 2 callers
Method
convert
(String source, String target)
src/main/java/com/linuxense/javadbf/DBFtoDBC.java:54
↓ 2 callers
Method
copyFile
(File source, File dest)
src/test/java/com/linuxense/javadbf/testutils/FileUtils.java:15
↓ 2 callers
Method
createFields
()
src/test/java/com/linuxense/javadbf/DBFWriterRandomAccesTest.java:83
↓ 2 callers
Method
createFields
()
src/test/java/com/linuxense/javadbf/DBFLockWriterTest.java:66
↓ 2 callers
Method
createInMemoryStorage
(byte[] buffer)
src/main/java/com/linuxense/javadbf/DBFExploder.java:460
↓ 2 callers
Method
createOutputStreamStorage
(OutputStream out)
src/main/java/com/linuxense/javadbf/DBFExploder.java:456
↓ 2 callers
Method
getAdjustedOutputSize
(byte[] compressedData)
src/main/java/com/linuxense/javadbf/DBFExploderInputStream.java:73
↓ 2 callers
Method
getAllBytesOrNull
(File file)
src/test/java/com/linuxense/javadbf/DBFtoDBCTest.java:39
↓ 2 callers
Method
getBoolean
Reads the data as Boolean @param columnName columnName @return the data as Boolean
src/main/java/com/linuxense/javadbf/DBFRow.java:158
↓ 2 callers
Method
getCode
Gets the code as stored in the dbf file. @return the code for this type
src/main/java/com/linuxense/javadbf/DBFDataType.java:138
↓ 2 callers
Method
getCompressedByteStream
()
src/main/java/com/linuxense/javadbf/DBFExploderInputStream.java:81
↓ 2 callers
Method
getCount
()
src/test/java/com/linuxense/javadbf/mocks/NullOutputStream.java:68
↓ 2 callers
Method
getDataInput
()
src/main/java/com/linuxense/javadbf/DBFMemoFile.java:87
↓ 2 callers
Method
getDataType
Returns the data type of the field. @return Data type as byte. @deprecated This method is deprecated and is replaced by {@link #getType()}
src/main/java/com/linuxense/javadbf/DBFField.java:550
↓ 2 callers
Method
getDefaultSize
Gets the default size for this type @return default size for this type
src/main/java/com/linuxense/javadbf/DBFDataType.java:168
↓ 2 callers
Method
getMaxSize
Gets the maximum size for this type @return Maximum size for this type
src/main/java/com/linuxense/javadbf/DBFDataType.java:161
↓ 2 callers
Method
getMinSize
Gets the minimum size for this type @return minimum size for this type
src/main/java/com/linuxense/javadbf/DBFDataType.java:154
↓ 2 callers
Method
getRamdonAccessFile
Get de underlying RandomAccessFile. It can be null if OutputStream constructor is used. @return the underlying RandomAccessFile
src/main/java/com/linuxense/javadbf/DBFWriter.java:447
↓ 2 callers
Method
isClosed
Check if the writer is closed @return true if already closed
src/main/java/com/linuxense/javadbf/DBFWriter.java:439
↓ 2 callers
Method
isDeleted
Check if the record is deleted. if you pass true on showDeletedRows to DBFReader constructor, deleted records are retrieved and this method allows you
src/main/java/com/linuxense/javadbf/DBFRow.java:63
↓ 2 callers
Method
isNullable
Checks if the field is nullable @return true if the field is nullable
src/main/java/com/linuxense/javadbf/DBFField.java:472
↓ 2 callers
Method
isWriteSupported
Gets if JavaDBF can write this type @return true if JavaDBF can write this type
src/main/java/com/linuxense/javadbf/DBFDataType.java:175
↓ 2 callers
Method
read
()
src/test/java/com/linuxense/javadbf/mocks/FailInputStream.java:26
↓ 2 callers
Method
readMemoField
(DBFField field)
src/main/java/com/linuxense/javadbf/DBFReader.java:521
↓ 2 callers
Method
readNumericStoredAsText
Reads a number from a stream, @param dataInput the stream data @param length the legth of the number @return The number as a Number (BigDecimal) @thro
src/main/java/com/linuxense/javadbf/DBFUtils.java:68
↓ 2 callers
Method
removeNullBytes
Remove all nulls (0) found in the data. @param array the data @return the data cleared of whitespaces
src/main/java/com/linuxense/javadbf/DBFUtils.java:137
↓ 2 callers
Method
skipFirst
(byte[] converted, int from)
src/test/java/com/linuxense/javadbf/DBFtoDBCTest.java:35
next →
1–100 of 397, ranked by callers