io.atlasmap.csv.core.CsvFieldReader.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4?
? h ?
? ? ?
? h ? ? ? ? ?
? ? ?
?
G ? ? ?
? ? ? ? ?
?
? ? ? ?
?
?
?
? ? ? ? ? ? ? ? ? ? ?
h ? ? ? ? ? ?
$ ?
? ? ????
? ? ?
* ?
? ? ?
?
- ?
- ?
? ?
? ? ?
' ?
?
?
?
3 ?
?
3 ?
?
' ?
- ?
- ?
?
? ?
? ?
?
?
?
K ?
K
K ?
3
G
T ?
T
W ?
W
W
W ?
W
W
b ?
b ?
e ?
e csvConfig Lio/atlasmap/csv/core/CsvConfig; document Ljava/io/InputStream; #(Lio/atlasmap/csv/core/CsvConfig;)V Code LineNumberTable LocalVariableTable this %Lio/atlasmap/csv/core/CsvFieldReader; setDocument (Ljava/io/InputStream;)V inputStream
StackMapTable read >(Lio/atlasmap/spi/AtlasInternalSession;)Lio/atlasmap/v2/Field; readSubField Lio/atlasmap/v2/Field; subField
fieldGroup Lio/atlasmap/v2/FieldGroup; fields Ljava/util/List; readFieldGroup readField session &Lio/atlasmap/spi/AtlasInternalSession; field LocalVariableTypeTable (Ljava/util/List; ? ?!"
Exceptions
readFields 5(Lio/atlasmap/csv/v2/CsvField;)Lio/atlasmap/v2/Field; value Ljava/lang/String; newField Lio/atlasmap/csv/v2/CsvField; record "Lorg/apache/commons/csv/CSVRecord; collectionField collectionFieldPath Lio/atlasmap/core/AtlasPath; parser "Lorg/apache/commons/csv/CSVParser; atlasPath i I
fieldIndex Ljava/lang/Integer; e Ljava/io/IOException; csvField csvFormat "Lorg/apache/commons/csv/CSVFormat; ?#$ ? ? ?
readSchema ()Lio/atlasmap/v2/Document;
headerName csvFields Lio/atlasmap/csv/v2/CsvFields; csvComplexType #Lio/atlasmap/csv/v2/CsvComplexType; documentFields Lio/atlasmap/v2/Fields; Lio/atlasmap/v2/Document; /Ljava/util/List;
SourceFile CsvFieldReader.java n% j k&'( java/io/BufferedInputStream n v l m ),-./01 9Cannot read field '%s' of document '%s', document is null java/lang/Object213456789: io/atlasmap/api/AtlasException "java/lang/IllegalArgumentException Argument 'field' cannot be null n; n< io/atlasmap/csv/v2/CsvField io/atlasmap/v2/FieldGroup Unsupported field type '%s'=>?@ABC!DE"F(GH io/atlasmap/v2/FieldIJ ? ?KLMN java/util/ArrayListOPQ java/lang/IntegerRS java/io/InputStreamReader#TU io/atlasmap/core/AtlasPathVXYZ[$ org/apache/commons/csv/CSVRecord\]^_`ab[Icd1Iefghijkl1m;n% java/io/IOExceptiono]pqrst(u@ java/lang/Stringvaw; java/lang/StringBuilder /<>/xyz{|}~hc io/atlasmap/csv/v2/CsvFields@ !io/atlasmap/csv/v2/CsvComplexType?|????? /<> ?? io/atlasmap/v2/Fields io/atlasmap/v2/Document?? #io/atlasmap/csv/core/CsvFieldReader io/atlasmap/spi/AtlasFieldReader $io/atlasmap/spi/AtlasInternalSession java/util/List java/util/Iterator org/apache/commons/csv/CSVFormat org/apache/commons/csv/CSVParser ()V java/io/InputStream
markSupported ()Z head Head InnerClasses -()Lio/atlasmap/spi/AtlasInternalSession$Head; )io/atlasmap/spi/AtlasInternalSession$Head getSourceField ()Lio/atlasmap/v2/Field; getDocId ()Ljava/lang/String; getPath format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; io/atlasmap/v2/AuditStatus ERROR Lio/atlasmap/v2/AuditStatus; io/atlasmap/core/AtlasUtil addAudit ?(Lio/atlasmap/api/AtlasSession;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/atlasmap/v2/AuditStatus;Ljava/lang/String;)V (Ljava/lang/String;)V (Ljava/lang/Throwable;)V getClass ()Ljava/lang/Class; getField ()Ljava/util/List; io/atlasmap/v2/AtlasModelFactory copyFieldGroup 8(Lio/atlasmap/v2/FieldGroup;)Lio/atlasmap/v2/FieldGroup; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; get (I)Ljava/lang/Object; add (Ljava/lang/Object;)Z setSourceField C(Lio/atlasmap/v2/Field;)Lio/atlasmap/spi/AtlasInternalSession$Head; io/atlasmap/csv/core/CsvConfig newCsvFormat $()Lorg/apache/commons/csv/CSVFormat; mark (I)V parse 4(Ljava/io/Reader;)Lorg/apache/commons/csv/CSVParser; getRootSegment SegmentContext -()Lio/atlasmap/core/AtlasPath$SegmentContext; )io/atlasmap/core/AtlasPath$SegmentContext getCollectionIndex ()Ljava/lang/Integer; intValue ()I cloneOf <(Lio/atlasmap/csv/v2/CsvField;)Lio/atlasmap/csv/v2/CsvField; setIndex (Ljava/lang/Integer;)V getColumn (I)Ljava/lang/String; getName &(Ljava/lang/String;)Ljava/lang/String; setValue (Ljava/lang/Object;)V valueOf (I)Ljava/lang/Integer; setCollectionIndex A(ILjava/lang/Integer;)Lio/atlasmap/core/AtlasPath$SegmentContext; toString setPath reset size createFieldGroupFrom 4(Lio/atlasmap/v2/Field;Z)Lio/atlasmap/v2/FieldGroup; addAll (Ljava/util/Collection;)Z isFirstRecordAsHeader getHeaderNames setColumn setName append -(Ljava/lang/String;)Ljava/lang/StringBuilder; io/atlasmap/v2/FieldType STRING Lio/atlasmap/v2/FieldType; setFieldType (Lio/atlasmap/v2/FieldType;)V getCsvField COMPLEX io/atlasmap/v2/CollectionType LIST Lio/atlasmap/v2/CollectionType; setCollectionType "(Lio/atlasmap/v2/CollectionType;)V setCsvFields !(Lio/atlasmap/csv/v2/CsvFields;)V setFields (Lio/atlasmap/v2/Fields;)V ! h i j k l m n o p F
*? *+? ? q 8 9 : r
s t
j k u v p j +? +? ? *? Y+? ? ? *+? ? q = > @ B r s t w m x y z p H +? ? M*? ? ,+,?
? Y,? SY,? S?
,? ? ? ,?,? ? Y? Y? ? ?,? ? ",? ? ? Y? Y,? S?
? ?,? ? ?,? N-? :-? :? :? ? M? ? :? ? ? ? ? ? :? ? *? ? !:? ? " W???+? ? # W?*,? ? !N+? -? # W-? q r F H I ! K , J 0 L 7 I : M <