public abstract class AbstractCsvMapper<T> extends Object
| Constructor and Description |
|---|
AbstractCsvMapper(Class<T> cls,
char divider,
char quoteCharacter,
char escapeCharacter,
List<AbstractColumn> columns,
boolean skipEmptyLines,
boolean skipComments,
boolean skippableFieldsWithoutLinebreaks,
ClassLoader classLoader,
int bufferLength) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstructors(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName) |
protected void |
addConstructors(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName) |
protected void |
addMethod(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
AbstractColumn[] mapping,
boolean carriageReturns,
boolean inline,
int lastIndex,
int firstIndex) |
protected void |
addStatics(org.objectweb.asm.ClassWriter classWriter,
AbstractColumn[] columns,
String classInternalName,
String className) |
Class<? extends AbstractCsvReader<T>> |
createDefaultReaderClass(boolean carriageReturns) |
Class<? extends AbstractCsvReader<T>> |
createReaderClass(boolean carriageReturns,
List<String> csvFileFieldNames) |
Class<? extends AbstractCsvReader<T>> |
createReaderClass(boolean carriageReturns,
String header) |
protected int |
getDivider() |
static String |
getInternalName(Class<?> cls) |
static String |
getInternalName(String className) |
protected List<String> |
parseColumnNames(String row) |
protected void |
saveCurrentOffset(org.objectweb.asm.MethodVisitor mv,
String superClassInternalName,
int currentOffsetIndex) |
protected void |
skipColumns(org.objectweb.asm.MethodVisitor mv,
int count) |
protected void |
skipToLinebreak(org.objectweb.asm.MethodVisitor mv) |
protected String |
write(org.objectweb.asm.ClassWriter classWriter,
List<String> csvFileFieldNames,
boolean carriageReturns) |
protected void |
writeReaderConstructor(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName) |
protected void |
writeReaderWithBufferConstructor(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName) |
protected void |
writeSkipComments(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName) |
protected void |
writeSkipEmptyLines(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturns) |
protected void |
writeSkipEmptyOrCommentedLines(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturns) |
protected abstract void |
writeTriConsumerVariable(String subClassInternalName,
org.objectweb.asm.MethodVisitor mv) |
public static final int VAR_CURRENT_OFFSET
public static final int VAR_CURRENT_ARRAY
public static final int VAR_OBJECT
public static final int VAR_START
public static final int VAR_RANGE
public static final int VAR_INTERMEDIATE_OBJECT
protected static final String GENERATED_CLASS_SIMPLE_NAME
protected static final String GENERATED_CLASS_FULL_NAME
protected static final String GENERATED_CLASS_FULL_INTERNAL
protected static final String superClassInternalName
protected static final String csvStaticInitializer
protected static final String ignoredSeperateQuoteAndEscapeCharacterColumnName
protected static final String ignoredIdenticalQuoteAndEscapeCharacterColumnName
protected static AtomicInteger counter
protected int divider
protected int quoteCharacter
protected int escapeCharacter
protected String mappedClassInternalName
protected Map<String,AbstractColumn> keys
protected List<AbstractColumn> columns
protected final boolean skipEmptyLines
protected final boolean skipComments
protected final boolean skippableFieldsWithoutLinebreaks
protected final int bufferLength
protected static final int currentOffsetIndex
protected static final int currentArrayIndex
protected static final int objectIndex
protected static final int startIndex
protected static final int rangeIndex
protected static final int intermediateIndex
protected final Map<String,DefaultStaticCsvMapper<T>> factories
protected final ClassLoader classLoader
protected final boolean biConsumer
protected final boolean triConsumer
public AbstractCsvMapper(Class<T> cls, char divider, char quoteCharacter, char escapeCharacter, List<AbstractColumn> columns, boolean skipEmptyLines, boolean skipComments, boolean skippableFieldsWithoutLinebreaks, ClassLoader classLoader, int bufferLength)
protected int getDivider()
public Class<? extends AbstractCsvReader<T>> createDefaultReaderClass(boolean carriageReturns) throws Exception
Exceptionpublic Class<? extends AbstractCsvReader<T>> createReaderClass(boolean carriageReturns, String header) throws Exception
Exceptionpublic Class<? extends AbstractCsvReader<T>> createReaderClass(boolean carriageReturns, List<String> csvFileFieldNames) throws Exception
Exceptionprotected String write(org.objectweb.asm.ClassWriter classWriter, List<String> csvFileFieldNames, boolean carriageReturns)
protected void addMethod(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
AbstractColumn[] mapping,
boolean carriageReturns,
boolean inline,
int lastIndex,
int firstIndex)
protected abstract void writeTriConsumerVariable(String subClassInternalName, org.objectweb.asm.MethodVisitor mv)
protected void addConstructors(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName)
protected void writeSkipComments(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName)
protected void skipToLinebreak(org.objectweb.asm.MethodVisitor mv)
protected void skipColumns(org.objectweb.asm.MethodVisitor mv,
int count)
protected void writeSkipEmptyOrCommentedLines(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturns)
protected void writeSkipEmptyLines(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturns)
protected void addStatics(org.objectweb.asm.ClassWriter classWriter,
AbstractColumn[] columns,
String classInternalName,
String className)
protected void addConstructors(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName)
protected void writeReaderWithBufferConstructor(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName)
protected void writeReaderConstructor(org.objectweb.asm.ClassWriter classWriter,
String subClassInternalName,
String intermediateInternalName)
protected void saveCurrentOffset(org.objectweb.asm.MethodVisitor mv,
String superClassInternalName,
int currentOffsetIndex)
Copyright © 2022 Media Skjolberg. All rights reserved.