samples.bin.FormFieldCSVOutput.class Maven / Gradle / Ivy
Go to download
Jericho HTML Parser is a simple but powerful java library allowing analysis and manipulation of
parts of an HTML document, including some common server-side tags, while reproducing verbatim any
unrecognised or invalid HTML. It also provides high-level HTML form manipulation functions.
???? . x
# . / 0 1 2
. 3
4
5
6
7 8
9 : ; <
= >
?
@
A B C
D E
F
G
H I J
=
K L
A M
K N
O P Q R S T ()V Code LineNumberTable main ([Ljava/lang/String;)V
Exceptions U
SourceFile FormFieldCSVOutput.java $ % data/form.html V W X java/lang/StringBuffer Using default argument of " Y Z Y [ \ ] ^ _ ` a b c file: java/net/URL $ ` java/io/InputStreamReader d e $ f g h i au/id/jericho/lib/html/Source $ j java/io/OutputStreamWriter $ k l m n o java/io/FileWriter FormData.csv p q r s t u r v w % B
The data in the form has been output to the CSV file FormData.csv 3This will open automatically after you press a key. FormFieldCSVOutput java/lang/Object java/lang/Exception java/lang/System err Ljava/io/PrintStream; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; (C)Ljava/lang/StringBuffer; toString ()Ljava/lang/String; java/io/PrintStream println (Ljava/lang/String;)V java/lang/String indexOf (I)I
openStream ()Ljava/io/InputStream; (Ljava/io/InputStream;)V au/id/jericho/lib/html/Util getString $(Ljava/io/Reader;)Ljava/lang/String; (Ljava/lang/CharSequence;)V (Ljava/io/OutputStream;)V setLogWriter (Ljava/io/Writer;)V findFormFields %()Lau/id/jericho/lib/html/FormFields; !au/id/jericho/lib/html/FormFields getColumnHeadings ()[Ljava/lang/String;
outputCSVLine &(Ljava/io/Writer;[Ljava/lang/String;)V getColumnValues java/io/Writer close ! " # $ % &