Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/uniVocity/univocity-parsers
/ functions
Functions
2,653 in github.com/uniVocity/univocity-parsers
⨍
Functions
2,653
◇
Types & classes
541
↓ 1,354 callers
Method
assertEquals
(T[] result, T[] expected)
src/test/java/com/univocity/parsers/csv/TestUtils.java:24
↓ 460 callers
Method
getFormat
The format of the file to be parsed/written (returns the format's defaults). @return The format of the file to be parsed/written
src/main/java/com/univocity/parsers/common/CommonSettings.java:273
↓ 430 callers
Method
get
Returns the value associated with the given string. If it doesn't exist, or if it has been evicted, a value will be populated using {@link #process(St
src/main/java/com/univocity/parsers/common/StringCache.java:103
↓ 279 callers
Method
setLineSeparator
Defines the line separator sequence that should be used for parsing and writing. @param lineSeparator a sequence of 1 to 2 characters that identifies
src/main/java/com/univocity/parsers/common/Format.java:105
↓ 231 callers
Method
append
Appends the given character. @param ch the character to append
src/main/java/com/univocity/parsers/common/input/CharAppender.java:69
↓ 193 callers
Method
add
Validates and adds multiple field references @param fields information that uniquely identifies each field @return the set of currently selected field
src/main/java/com/univocity/parsers/common/fields/FieldSet.java:88
↓ 189 callers
Method
put
Associates a value to a string @param input the string to be associated with a given value @param value the value associated with the given string
src/main/java/com/univocity/parsers/common/StringCache.java:85
↓ 138 callers
Method
parse
(String input, CsvParserSettings settings, String message)
src/test/java/com/univocity/parsers/examples/CsvParserExamples.java:805
↓ 129 callers
Method
setHeaderExtractionEnabled
Defines whether or not the first valid record parsed from the input should be considered as the row containing the names of each column @param header
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:116
↓ 129 callers
Method
writeRow
Writes the data given for an individual record. The output will remain open for further writing. <b>Note</b> this method will not use the {@link RowWr
src/main/java/com/univocity/parsers/common/AbstractWriter.java:751
↓ 113 callers
Method
valueOf
Creates a non-literal {@code NormalizedString}, meaning it will match with other {@code String} or {@code NormalizedString} regardless of different in
src/main/java/com/univocity/parsers/common/NormalizedString.java:186
↓ 112 callers
Method
length
Returns the current accumulated value length (the sum of all appended characters - whitespaceCount). @return the current accumulated value length (the
src/main/java/com/univocity/parsers/common/input/CharAppender.java:134
↓ 106 callers
Method
addField
Adds the range of the next field in a fixed-width record. The given range cannot overlap with previously defined fields. Blanks will be used to fill a
src/main/java/com/univocity/parsers/fixed/FixedWidthFields.java:212
↓ 104 callers
Method
parseLine
Parses a single line from a String in the format supported by the parser implementation. @param line a line of text to be parsed @return the values
src/main/java/com/univocity/parsers/common/AbstractParser.java:664
↓ 92 callers
Method
close
()
src/test/java/com/univocity/parsers/issues/github/Github_140.java:54
↓ 86 callers
Method
parseAll
Parses all remaining rows from the input and returns them in a list. @param expectedRowCount expected number of rows to be parsed from the input.
src/main/java/com/univocity/parsers/common/AbstractParser.java:490
↓ 85 callers
Method
printAndValidate
Prints a collection of rows to the standard output @param rows A collection of rows to be printed.
src/test/java/com/univocity/parsers/examples/Example.java:52
↓ 81 callers
Method
getObjectValue
(String[] data, String headerName, Class<T> type, T defaultValue)
src/main/java/com/univocity/parsers/common/record/RecordMetaDataImpl.java:373
↓ 79 callers
Method
toString
()
src/test/java/com/univocity/parsers/issues/github/Github_274.java:43
↓ 78 callers
Method
toString
()
src/test/java/com/univocity/parsers/csv/CsvWriterTest.java:509
↓ 77 callers
Method
isEmpty
Indicates whether this appender represents an empty {@code String}. @return {@code} true calling {@link #getAndReset()} would return {@code null}, oth
src/main/java/com/univocity/parsers/common/input/CharAppender.java:295
↓ 74 callers
Method
setRowProcessor
Defines the callback implementation of the interface {@link RowProcessor} which handles the lifecycle of the parsing process and processes each record
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:160
↓ 71 callers
Method
set
Validates and sets multiple field references. Any existing reference will be discarded. @param fields information that uniquely identifies each field
src/main/java/com/univocity/parsers/common/fields/FieldSet.java:74
↓ 68 callers
Method
nextChar
Returns the next character in the input. @return the next character in the input. '\0' if there are no more characters in the input or if the CharInp
src/main/java/com/univocity/parsers/common/input/CharInput.java:33
↓ 68 callers
Method
toString
()
src/test/java/com/univocity/parsers/examples/Car.java:86
↓ 67 callers
Method
getBeans
Returns the list of generated java beans at the end of the parsing process. @return the list of generated java beans at the end of the parsing proces
src/main/java/com/univocity/parsers/common/processor/core/AbstractBeanListProcessor.java:88
↓ 67 callers
Method
writeRowToString
Writes the data given for an individual record to a {@code String}. <b>Note</b> this method will not use the {@link RowWriterProcessor}. Use {@link Ab
src/main/java/com/univocity/parsers/common/AbstractWriter.java:1542
↓ 66 callers
Method
clone
Creates a deep copy of this object with all its mappings. Changes to the clone won't affect the original instance. @return a clone of the current mapp
src/main/java/com/univocity/parsers/common/fields/ColumnMapper.java:301
↓ 63 callers
Method
setIgnoreTrailingWhitespaces
Defines whether or not trailing whitespaces from values being read/written should be skipped (defaults to true) @param ignoreTrailingWhitespaces tru
src/main/java/com/univocity/parsers/common/CommonSettings.java:169
↓ 62 callers
Method
getReader
Creates a reader for a resource in the relative path @param relativePath relative path of the resource to be read @return a reader of the resource
src/test/java/com/univocity/parsers/examples/Example.java:39
↓ 59 callers
Method
setProcessor
Defines the callback implementation of the interface {@link Processor} which handles the lifecycle of the parsing process and processes each record ex
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:203
↓ 52 callers
Method
getValue
Returns the value contained in the given column. @param headerName the name of the column whose value will be returned @param expectedType the expe
src/main/java/com/univocity/parsers/common/record/Record.java:93
↓ 52 callers
Method
newReader
Creates a {@link java.io.Reader} from an input stream @param input the input stream @return a {@link java.io.Reader} wrapping the given input stream
src/main/java/com/univocity/parsers/common/ArgumentUtils.java:332
↓ 48 callers
Method
beginParsing
Starts an iterator-style parsing cycle. If a {@link RowProcessor} is provided in the configuration, it will be used to perform additional processing.
src/main/java/com/univocity/parsers/common/AbstractParser.java:248
↓ 48 callers
Method
getContext
Returns the current parsing {@link Context}, if available @return the contextual object with information about an ongoing parsing process
src/main/java/com/univocity/parsers/common/ResultIterator.java:33
↓ 47 callers
Method
convertFields
Associates a sequence of {@link Conversion}s to fields of a given set of fields @param enumType the type of the enumeration whose values represent
src/main/java/com/univocity/parsers/common/record/RecordMetaData.java:170
↓ 46 callers
Method
setHeaders
Defines the field names in the input/output, in the sequence they occur (defaults to null). <p>when reading, the given header names will be used to re
src/main/java/com/univocity/parsers/common/CommonSettings.java:198
↓ 45 callers
Method
charAt
(int index)
src/main/java/com/univocity/parsers/common/NormalizedString.java:119
↓ 44 callers
Method
parseNext
Parses the next record from the input. Note that {@link AbstractParser#beginParsing(Reader)} must have been invoked once before calling this method. I
src/main/java/com/univocity/parsers/common/AbstractParser.java:571
↓ 44 callers
Method
validate
(String delimiter, String input, String values)
src/test/java/com/univocity/parsers/issues/github/Github_209.java:51
↓ 42 callers
Method
setLineSeparatorDetectionEnabled
Defines whether the parser should detect the line separator automatically. @param lineSeparatorDetectionEnabled a flag indicating whether the first l
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:348
↓ 42 callers
Method
setQuoteEscape
Defines the character used for escaping quotes inside an already quoted value. Defaults to '"' @param quoteEscape the quote escape character
src/main/java/com/univocity/parsers/csv/CsvFormat.java:88
↓ 41 callers
Method
setIgnoreLeadingWhitespaces
Defines whether or not leading whitespaces from values being read/written should be skipped (defaults to true) @param ignoreLeadingWhitespaces true
src/main/java/com/univocity/parsers/common/CommonSettings.java:187
↓ 40 callers
Method
get
Returns a copy of the fields in this set @return a copy of the fields in this set
src/main/java/com/univocity/parsers/common/fields/FieldSet.java:65
↓ 39 callers
Method
getValue
Returns the a value to a given annotation attribute that might have been modified by a {@link com.univocity.parsers.annotations.Copy} annotation @par
src/main/java/com/univocity/parsers/annotations/helpers/AnnotationRegistry.java:59
↓ 38 callers
Method
getName
Returns the name of a property of a Java bean. Might be {@code null}. @return The property name.
src/main/java/com/univocity/parsers/common/beans/PropertyWrapper.java:75
↓ 38 callers
Method
setRowWriterProcessor
Defines a processor for input objects that converts them into a manageable format for writing. @param rowWriterProcessor the implementation of the in
src/main/java/com/univocity/parsers/common/CommonWriterSettings.java:94
↓ 35 callers
Method
getRows
The list of parsed records @return the list of parsed records
src/main/java/com/univocity/parsers/common/processor/core/AbstractListProcessor.java:94
↓ 34 callers
Method
getKey
(T constant, EnumSelector conversionType)
src/main/java/com/univocity/parsers/conversions/EnumConversion.java:205
↓ 34 callers
Method
getMessage
Returns a detailed message describing the error, and the internal state of the parser/writer. @return a detailed message describing the error
src/main/java/com/univocity/parsers/common/AbstractException.java:41
↓ 34 callers
Method
setQuote
Defines the character used for escaping values where the field delimiter is part of the value. Defaults to '"' @param quote the quote character
src/main/java/com/univocity/parsers/csv/CsvFormat.java:59
↓ 33 callers
Method
convertIndexes
Associates a sequence of {@link Conversion}s to fields of a given set of column indexes @param conversions the sequence of conversions to apply @ret
src/main/java/com/univocity/parsers/common/record/RecordMetaData.java:190
↓ 32 callers
Method
getName
(AnnotatedElement element)
src/main/java/com/univocity/parsers/annotations/helpers/AnnotationHelper.java:691
↓ 32 callers
Method
throwExceptionAndClose
In case of any exceptions, a {@link TextWritingException} is thrown, and the output {@link java.io.Writer} is closed. @param message Description of t
src/main/java/com/univocity/parsers/common/AbstractWriter.java:1014
↓ 32 callers
Method
toArray
Converts a list of enumerations to an array of their {@link Enum#toString()} representation @param enums a list of enumerations to convert @return a
src/main/java/com/univocity/parsers/common/ArgumentUtils.java:425
↓ 31 callers
Method
getString
Returns the {@code String} value in the given column @param headerName the name of the column @return the value stored in the given column, {@code n
src/main/java/com/univocity/parsers/common/record/Record.java:248
↓ 31 callers
Method
processRecord
Processes the data given for an individual record with the {@link RowWriterProcessor} provided by {@link CommonWriterSettings#getRowWriterProcessor()}
src/main/java/com/univocity/parsers/common/AbstractWriter.java:534
↓ 31 callers
Method
setHeaderWritingEnabled
Enables automatic writing of headers when they are available. If enabled, and headers are defined (or derived automatically if {@link #isAutoConfigura
src/main/java/com/univocity/parsers/common/CommonWriterSettings.java:118
↓ 31 callers
Method
setPadding
Defines the padding character used to represent unwritten spaces. Defaults to ' ' @param padding the padding character
src/main/java/com/univocity/parsers/fixed/FixedWidthFormat.java:53
↓ 30 callers
Method
selectFields
Selects a sequence of fields for reading/writing by their names. <p><b>When reading</b>, only the values of the selected columns will be parsed, and
src/main/java/com/univocity/parsers/common/CommonSettings.java:306
↓ 30 callers
Method
setDelimiter
Defines the field delimiter character. Defaults to ',' @param delimiter the field delimiter character
src/main/java/com/univocity/parsers/csv/CsvFormat.java:129
↓ 29 callers
Method
remove
Removes a section from the appended content @param from the starting position in the buffer (inclusive) @param length the number of characters to accu
src/main/java/com/univocity/parsers/common/input/CharAppender.java:116
↓ 28 callers
Method
getHeaders
Returns the column headers. This can be either the headers defined in {@link CommonSettings#getHeaders()} or the headers parsed in the input when {@li
src/main/java/com/univocity/parsers/common/processor/core/ColumnReader.java:43
↓ 28 callers
Method
headers
Returns the file headers that identify each parsed record. @return the headers used to identify each record parsed from the input.
src/main/java/com/univocity/parsers/common/Context.java:35
↓ 28 callers
Method
stopParsing
In case of errors, stops parsing and closes all open resources. Avoids hiding the original exception in case another error occurs when stopping.
src/main/java/com/univocity/parsers/common/AbstractParser.java:410
↓ 28 callers
Method
toString
()
src/main/java/com/univocity/parsers/common/Format.java:212
↓ 28 callers
Method
trim
Removes surrounding spaces from a given {@code String}, from its right or left side, or both. @param input the content to trim @param left flag to i
src/main/java/com/univocity/parsers/common/ArgumentUtils.java:584
↓ 27 callers
Method
newReader
(String path)
src/test/java/com/univocity/parsers/ParserTestCase.java:35
↓ 26 callers
Method
append
(char ch)
src/main/java/com/univocity/parsers/common/input/ExpandingCharAppender.java:86
↓ 25 callers
Method
remove
Removes any mappings that target a given method or attribute name. @param methodOrAttributeName the name of the method or attribute to be removed.
src/main/java/com/univocity/parsers/common/fields/ColumnMapper.java:307
↓ 25 callers
Method
setNullValue
Sets the String representation of a null value (defaults to null) <p>When reading, if the parser does not read any character from the input, the nullV
src/main/java/com/univocity/parsers/common/CommonSettings.java:107
↓ 24 callers
Method
next
()
src/main/java/com/univocity/parsers/common/iterators/ParserIterator.java:95
↓ 24 callers
Method
readFileContent
(File file)
src/test/java/com/univocity/parsers/ParserTestCase.java:58
↓ 24 callers
Method
setValue
Defines the value being processed when the error occurred. @param value the value being processed when error occurred.
src/main/java/com/univocity/parsers/common/DataProcessingException.java:169
↓ 23 callers
Method
currentParsedContent
Returns a String with the input character sequence parsed to produce the current record. @return the text content parsed for the current input record
src/main/java/com/univocity/parsers/common/ParsingContext.java:110
↓ 23 callers
Method
iterate
Provides an {@link IterableResult} for iterating rows parsed from the input. @param input the input {@code File} @param encoding the encoding of t
src/main/java/com/univocity/parsers/common/AbstractParser.java:1287
↓ 23 callers
Method
toArray
Converts a collection of plain strings into an array of {@code NormalizedString} @param args the strings to convert to {@code NormalizedString} @retur
src/main/java/com/univocity/parsers/common/NormalizedString.java:229
↓ 22 callers
Method
addSwitchForValue
Associates a {@link RowWriterProcessor} implementation with an expected value to be matched in the column provided in the constructor of this class.
src/main/java/com/univocity/parsers/common/processor/OutputValueSwitch.java:184
↓ 22 callers
Method
toIdentifierGroupArray
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate clashes. Any clashing entries will be converted
src/main/java/com/univocity/parsers/common/NormalizedString.java:525
↓ 21 callers
Method
assertHeadersAndValuesMatch
(RowListProcessor processor, String[] expectedHeaders, Object[][] expectedResult)
src/test/java/com/univocity/parsers/ParserTestCase.java:40
↓ 21 callers
Method
getDetectedFormat
Returns the CSV format detected when one of the following settings is enabled: <ul> <li>{@link CommonParserSettings#isLineSeparatorDetectionEnabled()}
src/main/java/com/univocity/parsers/csv/CsvParser.java:497
↓ 21 callers
Method
lastIndexOf
Returns the last index of a given character in the current appended (characters that have been marked as whitespace will be ignored) @param ch the cha
src/main/java/com/univocity/parsers/common/input/CharAppender.java:302
↓ 21 callers
Method
reset
Clears the accumulated value and the whitespace count.
src/main/java/com/univocity/parsers/common/input/CharAppender.java:160
↓ 21 callers
Method
setEmptyValue
Sets the String representation of an empty value (defaults to null) <p>When reading, if the parser does not read any character from the input, and th
src/main/java/com/univocity/parsers/csv/CsvParserSettings.java:75
↓ 21 callers
Method
writeHeaders
Writes the headers defined in {@link CommonSettings#getHeaders()} A {@link TextWritingException} will be thrown if no headers were defined or if recor
src/main/java/com/univocity/parsers/common/AbstractWriter.java:409
↓ 20 callers
Method
fill
Adds a sequence of repeated characters to the input. @param ch the character to append @param length the number of times the given character should be
src/main/java/com/univocity/parsers/common/input/CharAppender.java:180
↓ 20 callers
Method
print
Prints a collection of rows to the standard output @param rows A collection of rows to be printed.
src/test/java/com/univocity/parsers/examples/Example.java:72
↓ 20 callers
Method
setReadInputOnSeparateThread
Defines whether or not a separate thread will be used to read characters from the input while parsing (defaults true if the number of available proces
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:97
↓ 20 callers
Method
write
Converts the given input into an Object array that is suitable for writing. Used by format-specific writers that extend {@link AbstractWriter}. @para
src/main/java/com/univocity/parsers/common/processor/RowWriterProcessor.java:60
↓ 19 callers
Method
setColumnReorderingEnabled
Defines whether fields selected using the field selection methods (defined by the parent class {@link CommonSettings}) should be reordered (defaults t
src/main/java/com/univocity/parsers/common/CommonParserSettings.java:291
↓ 18 callers
Method
assertEqual
(Set<String> selectedFields, String field, Integer value, int expected)
src/test/java/com/univocity/parsers/issues/github/Github_283.java:99
↓ 18 callers
Method
equals
(Object o)
src/test/java/com/univocity/parsers/issues/github/Github_159.java:79
↓ 18 callers
Method
toLowerCase
Returns a singleton instance of {@link LowerCaseConversion} @return a singleton instance of {@link LowerCaseConversion}
src/main/java/com/univocity/parsers/conversions/Conversions.java:59
↓ 17 callers
Method
getColumnIndex
Returns the column index where the exception occurred. @return the column index where the exception occurred.
src/main/java/com/univocity/parsers/common/TextParsingException.java:128
↓ 17 callers
Method
getDelimiter
Returns the field delimiter character. Defaults to ',' @return the field delimiter character
src/main/java/com/univocity/parsers/csv/CsvFormat.java:108
↓ 17 callers
Method
getMetaData
(String name)
src/main/java/com/univocity/parsers/common/record/RecordMetaDataImpl.java:46
↓ 17 callers
Method
iterator
()
src/main/java/com/univocity/parsers/common/IterableResult.java:32
↓ 17 callers
Method
selectIndexes
Selects a sequence of fields for reading/writing by their positions. <p><b>When reading</b>, only the values of the selected columns will be parsed,
src/main/java/com/univocity/parsers/common/CommonSettings.java:348
↓ 17 callers
Method
substring
Returns a section of the appended content @param from the starting position in the buffer @param length the number of characters to accumulate from th
src/main/java/com/univocity/parsers/common/input/CharAppender.java:109
↓ 16 callers
Method
getColumnValues
Returns the values processed for each column @return a list of lists. The stored lists correspond to the position of the column processed from the inp
src/main/java/com/univocity/parsers/common/processor/core/ColumnSplitter.java:81
next →
1–100 of 2,653, ranked by callers