-
Notifications
You must be signed in to change notification settings - Fork 3
/
jsoup.d.ts
3355 lines (3324 loc) · 149 KB
/
jsoup.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="android-declarations.d.ts"/>
declare module org {
export module jsoup {
export class Connection {
public static class: java.lang.Class<org.jsoup.Connection>;
public constructor(implementation: {
cookie(param0: string, param1: string): org.jsoup.Connection;
cookies(param0: java.util.Map<string, string>): org.jsoup.Connection;
data(param0: string): org.jsoup.Connection.KeyVal;
data(param0: string, param1: string): org.jsoup.Connection;
data(
param0: string,
param1: string,
param2: java.io.InputStream,
): org.jsoup.Connection;
data(
param0: string,
param1: string,
param2: java.io.InputStream,
param3: string,
): org.jsoup.Connection;
data(
param0: java.util.Collection<org.jsoup.Connection.KeyVal>,
): org.jsoup.Connection;
data(param0: java.util.Map<string, string>): org.jsoup.Connection;
data(param0: androidNative.Array<string>): org.jsoup.Connection;
execute(): org.jsoup.Connection.Response;
followRedirects(param0: boolean): org.jsoup.Connection;
get(): org.jsoup.nodes.Document;
header(param0: string, param1: string): org.jsoup.Connection;
headers(param0: java.util.Map<string, string>): org.jsoup.Connection;
ignoreContentType(param0: boolean): org.jsoup.Connection;
ignoreHttpErrors(param0: boolean): org.jsoup.Connection;
maxBodySize(param0: number): org.jsoup.Connection;
method(param0: org.jsoup.Connection.Method): org.jsoup.Connection;
parser(param0: org.jsoup.parser.Parser): org.jsoup.Connection;
post(): org.jsoup.nodes.Document;
postDataCharset(param0: string): org.jsoup.Connection;
proxy(param0: string, param1: number): org.jsoup.Connection;
proxy(param0: java.net.Proxy): org.jsoup.Connection;
referrer(param0: string): org.jsoup.Connection;
request(): org.jsoup.Connection.Request;
request(param0: org.jsoup.Connection.Request): org.jsoup.Connection;
requestBody(param0: string): org.jsoup.Connection;
response(): org.jsoup.Connection.Response;
response(param0: org.jsoup.Connection.Response): org.jsoup.Connection;
sslSocketFactory(
param0: javax.net.ssl.SSLSocketFactory,
): org.jsoup.Connection;
timeout(param0: number): org.jsoup.Connection;
url(param0: string): org.jsoup.Connection;
url(param0: java.net.URL): org.jsoup.Connection;
userAgent(param0: string): org.jsoup.Connection;
});
public constructor();
public postDataCharset(param0: string): org.jsoup.Connection;
public data(param0: string): org.jsoup.Connection.KeyVal;
public proxy(param0: string, param1: number): org.jsoup.Connection;
public response(
param0: org.jsoup.Connection.Response,
): org.jsoup.Connection;
public maxBodySize(param0: number): org.jsoup.Connection;
public request(): org.jsoup.Connection.Request;
public referrer(param0: string): org.jsoup.Connection;
public post(): org.jsoup.nodes.Document;
public followRedirects(param0: boolean): org.jsoup.Connection;
public data(
param0: java.util.Collection<org.jsoup.Connection.KeyVal>,
): org.jsoup.Connection;
public requestBody(param0: string): org.jsoup.Connection;
public data(
param0: string,
param1: string,
param2: java.io.InputStream,
param3: string,
): org.jsoup.Connection;
public data(param0: java.util.Map<string, string>): org.jsoup.Connection;
public proxy(param0: java.net.Proxy): org.jsoup.Connection;
public data(
param0: string,
param1: string,
param2: java.io.InputStream,
): org.jsoup.Connection;
public request(
param0: org.jsoup.Connection.Request,
): org.jsoup.Connection;
public url(param0: java.net.URL): org.jsoup.Connection;
public execute(): org.jsoup.Connection.Response;
public response(): org.jsoup.Connection.Response;
public sslSocketFactory(
param0: javax.net.ssl.SSLSocketFactory,
): org.jsoup.Connection;
public timeout(param0: number): org.jsoup.Connection;
public url(param0: string): org.jsoup.Connection;
public header(param0: string, param1: string): org.jsoup.Connection;
public userAgent(param0: string): org.jsoup.Connection;
public cookie(param0: string, param1: string): org.jsoup.Connection;
public data(param0: string, param1: string): org.jsoup.Connection;
public data(param0: androidNative.Array<string>): org.jsoup.Connection;
public ignoreContentType(param0: boolean): org.jsoup.Connection;
public ignoreHttpErrors(param0: boolean): org.jsoup.Connection;
public cookies(
param0: java.util.Map<string, string>,
): org.jsoup.Connection;
public headers(
param0: java.util.Map<string, string>,
): org.jsoup.Connection;
public get(): org.jsoup.nodes.Document;
public method(param0: org.jsoup.Connection.Method): org.jsoup.Connection;
public parser(param0: org.jsoup.parser.Parser): org.jsoup.Connection;
}
export module Connection {
export class Base<T> extends java.lang.Object {
public static class: java.lang.Class<org.jsoup.Connection.Base<any>>;
/**
* Constructs a new instance of the org.jsoup.Connection$Base interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
addHeader(param0: string, param1: string): T;
cookie(param0: string): string;
cookie(param0: string, param1: string): T;
cookies(): java.util.Map<string, string>;
hasCookie(param0: string): boolean;
hasHeader(param0: string): boolean;
hasHeaderWithValue(param0: string, param1: string): boolean;
header(param0: string): string;
header(param0: string, param1: string): T;
headers(param0: string): java.util.List<string>;
headers(): java.util.Map<string, string>;
method(param0: org.jsoup.Connection.Method): T;
method(): org.jsoup.Connection.Method;
multiHeaders(): java.util.Map<string, java.util.List<string>>;
removeCookie(param0: string): T;
removeHeader(param0: string): T;
url(): java.net.URL;
url(param0: java.net.URL): T;
});
public constructor();
public header(param0: string): string;
public method(param0: org.jsoup.Connection.Method): T;
public method(): org.jsoup.Connection.Method;
public cookies(): java.util.Map<string, string>;
public cookie(param0: string, param1: string): T;
public removeCookie(param0: string): T;
public hasHeader(param0: string): boolean;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public removeHeader(param0: string): T;
public addHeader(param0: string, param1: string): T;
public hasCookie(param0: string): boolean;
public headers(param0: string): java.util.List<string>;
public headers(): java.util.Map<string, string>;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public url(param0: java.net.URL): T;
public url(): java.net.URL;
public header(param0: string, param1: string): T;
public cookie(param0: string): string;
}
export class KeyVal {
public static class: java.lang.Class<org.jsoup.Connection.KeyVal>;
/**
* Constructs a new instance of the org.jsoup.Connection$KeyVal interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
contentType(): string;
contentType(param0: string): org.jsoup.Connection.KeyVal;
hasInputStream(): boolean;
inputStream(): java.io.InputStream;
inputStream(param0: java.io.InputStream): org.jsoup.Connection.KeyVal;
key(): string;
key(param0: string): org.jsoup.Connection.KeyVal;
value(): string;
value(param0: string): org.jsoup.Connection.KeyVal;
});
public constructor();
public key(param0: string): org.jsoup.Connection.KeyVal;
public value(): string;
public contentType(): string;
public inputStream(): java.io.InputStream;
public inputStream(
param0: java.io.InputStream,
): org.jsoup.Connection.KeyVal;
public contentType(param0: string): org.jsoup.Connection.KeyVal;
public value(param0: string): org.jsoup.Connection.KeyVal;
public hasInputStream(): boolean;
public key(): string;
}
export class Method {
public static class: java.lang.Class<org.jsoup.Connection.Method>;
public static DELETE: org.jsoup.Connection.Method;
public static GET: org.jsoup.Connection.Method;
public static HEAD: org.jsoup.Connection.Method;
public static OPTIONS: org.jsoup.Connection.Method;
public static PATCH: org.jsoup.Connection.Method;
public static POST: org.jsoup.Connection.Method;
public static PUT: org.jsoup.Connection.Method;
public static TRACE: org.jsoup.Connection.Method;
public hasBody(): boolean;
public static values(): androidNative.Array<org.jsoup.Connection.Method>;
public static '<clinit>'(): void;
public static valueOf(param0: string): org.jsoup.Connection.Method;
}
export class Request extends org.jsoup.Connection
.Base<org.jsoup.Connection.Request> {
public static class: java.lang.Class<org.jsoup.Connection.Request>;
/**
* Constructs a new instance of the org.jsoup.Connection$Request interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
data(): java.util.Collection<org.jsoup.Connection.KeyVal>;
data(
param0: org.jsoup.Connection.KeyVal,
): org.jsoup.Connection.Request;
followRedirects(param0: boolean): org.jsoup.Connection.Request;
followRedirects(): boolean;
ignoreContentType(param0: boolean): org.jsoup.Connection.Request;
ignoreContentType(): boolean;
ignoreHttpErrors(param0: boolean): org.jsoup.Connection.Request;
ignoreHttpErrors(): boolean;
maxBodySize(): number;
maxBodySize(param0: number): org.jsoup.Connection.Request;
parser(param0: org.jsoup.parser.Parser): org.jsoup.Connection.Request;
parser(): org.jsoup.parser.Parser;
postDataCharset(): string;
postDataCharset(param0: string): org.jsoup.Connection.Request;
proxy(): java.net.Proxy;
proxy(param0: string, param1: number): org.jsoup.Connection.Request;
proxy(param0: java.net.Proxy): org.jsoup.Connection.Request;
requestBody(): string;
requestBody(param0: string): org.jsoup.Connection.Request;
sslSocketFactory(): javax.net.ssl.SSLSocketFactory;
sslSocketFactory(param0: javax.net.ssl.SSLSocketFactory): void;
timeout(): number;
timeout(param0: number): org.jsoup.Connection.Request;
addHeader(param0: string, param1: string): any;
cookie(param0: string): string;
cookie(param0: string, param1: string): any;
cookies(): java.util.Map<string, string>;
hasCookie(param0: string): boolean;
hasHeader(param0: string): boolean;
hasHeaderWithValue(param0: string, param1: string): boolean;
header(param0: string): string;
header(param0: string, param1: string): any;
headers(param0: string): java.util.List<string>;
headers(): java.util.Map<string, string>;
method(param0: org.jsoup.Connection.Method): any;
method(): org.jsoup.Connection.Method;
multiHeaders(): java.util.Map<string, java.util.List<string>>;
removeCookie(param0: string): any;
removeHeader(param0: string): any;
url(): java.net.URL;
url(param0: java.net.URL): any;
});
public constructor();
public header(param0: string): string;
public header(param0: string, param1: string): any;
public ignoreHttpErrors(param0: boolean): org.jsoup.Connection.Request;
public postDataCharset(param0: string): org.jsoup.Connection.Request;
public method(): org.jsoup.Connection.Method;
public cookies(): java.util.Map<string, string>;
public followRedirects(): boolean;
public proxy(param0: java.net.Proxy): org.jsoup.Connection.Request;
public requestBody(): string;
public url(param0: java.net.URL): any;
public data(
param0: org.jsoup.Connection.KeyVal,
): org.jsoup.Connection.Request;
public proxy(
param0: string,
param1: number,
): org.jsoup.Connection.Request;
public timeout(): number;
public hasHeader(param0: string): boolean;
public sslSocketFactory(): javax.net.ssl.SSLSocketFactory;
public headers(param0: string): java.util.List<string>;
public followRedirects(param0: boolean): org.jsoup.Connection.Request;
public removeCookie(param0: string): any;
public url(): java.net.URL;
public maxBodySize(): number;
public sslSocketFactory(param0: javax.net.ssl.SSLSocketFactory): void;
public postDataCharset(): string;
public method(param0: org.jsoup.Connection.Method): any;
public proxy(): java.net.Proxy;
public data(): java.util.Collection<org.jsoup.Connection.KeyVal>;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public hasCookie(param0: string): boolean;
public ignoreContentType(): boolean;
public ignoreHttpErrors(): boolean;
public cookie(param0: string, param1: string): any;
public requestBody(param0: string): org.jsoup.Connection.Request;
public addHeader(param0: string, param1: string): any;
public headers(): java.util.Map<string, string>;
public removeHeader(param0: string): any;
public maxBodySize(param0: number): org.jsoup.Connection.Request;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public parser(
param0: org.jsoup.parser.Parser,
): org.jsoup.Connection.Request;
public ignoreContentType(param0: boolean): org.jsoup.Connection.Request;
public timeout(param0: number): org.jsoup.Connection.Request;
public parser(): org.jsoup.parser.Parser;
public cookie(param0: string): string;
}
export class Response extends org.jsoup.Connection
.Base<org.jsoup.Connection.Response> {
public static class: java.lang.Class<org.jsoup.Connection.Response>;
/**
* Constructs a new instance of the org.jsoup.Connection$Response interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
body(): string;
bodyAsBytes(): androidNative.Array<number>;
bodyStream(): java.io.BufferedInputStream;
bufferUp(): org.jsoup.Connection.Response;
charset(): string;
charset(param0: string): org.jsoup.Connection.Response;
contentType(): string;
parse(): org.jsoup.nodes.Document;
statusCode(): number;
statusMessage(): string;
addHeader(param0: string, param1: string): any;
cookie(param0: string): string;
cookie(param0: string, param1: string): any;
cookies(): java.util.Map<string, string>;
hasCookie(param0: string): boolean;
hasHeader(param0: string): boolean;
hasHeaderWithValue(param0: string, param1: string): boolean;
header(param0: string): string;
header(param0: string, param1: string): any;
headers(param0: string): java.util.List<string>;
headers(): java.util.Map<string, string>;
method(param0: org.jsoup.Connection.Method): any;
method(): org.jsoup.Connection.Method;
multiHeaders(): java.util.Map<string, java.util.List<string>>;
removeCookie(param0: string): any;
removeHeader(param0: string): any;
url(): java.net.URL;
url(param0: java.net.URL): any;
});
public constructor();
public header(param0: string): string;
public header(param0: string, param1: string): any;
public body(): string;
public method(): org.jsoup.Connection.Method;
public cookies(): java.util.Map<string, string>;
public parse(): org.jsoup.nodes.Document;
public url(param0: java.net.URL): any;
public hasHeader(param0: string): boolean;
public headers(param0: string): java.util.List<string>;
public bodyAsBytes(): androidNative.Array<number>;
public removeCookie(param0: string): any;
public contentType(): string;
public url(): java.net.URL;
public charset(param0: string): org.jsoup.Connection.Response;
public statusMessage(): string;
public method(param0: org.jsoup.Connection.Method): any;
public bufferUp(): org.jsoup.Connection.Response;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public hasCookie(param0: string): boolean;
public cookie(param0: string, param1: string): any;
public addHeader(param0: string, param1: string): any;
public headers(): java.util.Map<string, string>;
public removeHeader(param0: string): any;
public statusCode(): number;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public charset(): string;
public bodyStream(): java.io.BufferedInputStream;
public cookie(param0: string): string;
}
}
export class HttpStatusException {
public static class: java.lang.Class<org.jsoup.HttpStatusException>;
public constructor(param0: string, param1: number, param2: string);
public getUrl(): string;
public toString(): string;
public getStatusCode(): number;
}
export class Jsoup {
public static class: java.lang.Class<org.jsoup.Jsoup>;
public static parse(
param0: java.net.URL,
param1: number,
): org.jsoup.nodes.Document;
public static parse(
param0: java.io.File,
param1: string,
param2: string,
): org.jsoup.nodes.Document;
public static parseBodyFragment(
param0: string,
param1: string,
): org.jsoup.nodes.Document;
public static parse(
param0: java.io.InputStream,
param1: string,
param2: string,
): org.jsoup.nodes.Document;
public static parse(
param0: string,
param1: string,
): org.jsoup.nodes.Document;
public static parseBodyFragment(param0: string): org.jsoup.nodes.Document;
public static clean(
param0: string,
param1: string,
param2: org.jsoup.safety.Whitelist,
): string;
public static parse(
param0: java.io.InputStream,
param1: string,
param2: string,
param3: org.jsoup.parser.Parser,
): org.jsoup.nodes.Document;
public static parse(
param0: string,
param1: string,
param2: org.jsoup.parser.Parser,
): org.jsoup.nodes.Document;
public static isValid(
param0: string,
param1: org.jsoup.safety.Whitelist,
): boolean;
public static connect(param0: string): org.jsoup.Connection;
public static parse(
param0: java.io.File,
param1: string,
): org.jsoup.nodes.Document;
public static clean(
param0: string,
param1: org.jsoup.safety.Whitelist,
): string;
public static parse(param0: string): org.jsoup.nodes.Document;
public static clean(
param0: string,
param1: string,
param2: org.jsoup.safety.Whitelist,
param3: org.jsoup.nodes.Document.OutputSettings,
): string;
}
export class SerializationException {
public static class: java.lang.Class<org.jsoup.SerializationException>;
public constructor(param0: java.lang.Throwable);
public constructor(param0: string, param1: java.lang.Throwable);
public constructor();
public constructor(param0: string);
}
export class UncheckedIOException {
public static class: java.lang.Class<org.jsoup.UncheckedIOException>;
public constructor(param0: java.io.IOException);
public ioException(): java.io.IOException;
public constructor(param0: string);
}
export class UnsupportedMimeTypeException {
public static class: java.lang.Class<org.jsoup.UnsupportedMimeTypeException>;
public getMimeType(): string;
public getUrl(): string;
public toString(): string;
public constructor(param0: string, param1: string, param2: string);
}
export module helper {
export abstract class ChangeNotifyingArrayList<E> extends java.util
.ArrayList<any> {
public static class: java.lang.Class<
org.jsoup.helper.ChangeNotifyingArrayList<any>
>;
public addAll(param0: java.util.Collection<any>): boolean;
public remove(param0: number): any;
public removeRange(param0: number, param1: number): void;
public retainAll(param0: java.util.Collection<any>): boolean;
public add(param0: number, param1: any): void;
public set(param0: number, param1: any): any;
public add(param0: any): boolean;
public removeAll(param0: java.util.Collection<any>): boolean;
public clear(): void;
public onContentsChanged(): void;
public constructor(param0: number);
public addAll(
param0: number,
param1: java.util.Collection<any>,
): boolean;
public remove(param0: any): boolean;
}
export class DataUtil {
public static class: java.lang.Class<org.jsoup.helper.DataUtil>;
public static boundaryLength: number;
public static bufferSize: number;
public static defaultCharset: string;
public static emptyByteBuffer(): java.nio.ByteBuffer;
public static load(
param0: java.io.File,
param1: string,
param2: string,
): org.jsoup.nodes.Document;
public static '<clinit>'(): void;
public static load(
param0: java.io.InputStream,
param1: string,
param2: string,
param3: org.jsoup.parser.Parser,
): org.jsoup.nodes.Document;
public static parseInputStream(
param0: java.io.InputStream,
param1: string,
param2: string,
param3: org.jsoup.parser.Parser,
): org.jsoup.nodes.Document;
public static getCharsetFromContentType(param0: string): string;
public static mimeBoundary(): string;
public static readToByteBuffer(
param0: java.io.InputStream,
param1: number,
): java.nio.ByteBuffer;
public static load(
param0: java.io.InputStream,
param1: string,
param2: string,
): org.jsoup.nodes.Document;
public static crossStreams(
param0: java.io.InputStream,
param1: java.io.OutputStream,
): void;
}
export module DataUtil {
export class BomCharset {
public static class: java.lang.Class<org.jsoup.helper.DataUtil.BomCharset>;
public constructor(param0: string, param1: boolean);
}
}
export class HttpConnection extends org.jsoup.Connection {
public static class: java.lang.Class<org.jsoup.helper.HttpConnection>;
public static CONTENT_ENCODING: string;
public static CONTENT_TYPE: string;
public static DEFAULT_UA: string;
public static FORM_URL_ENCODED: string;
public static MULTIPART_FORM_DATA: string;
public proxy(param0: string, param1: number): org.jsoup.Connection;
public referrer(param0: string): org.jsoup.Connection;
public data(param0: androidNative.Array<string>): org.jsoup.Connection;
public sslSocketFactory(
param0: javax.net.ssl.SSLSocketFactory,
): org.jsoup.Connection;
public data(param0: string, param1: string): org.jsoup.Connection;
public post(): org.jsoup.nodes.Document;
public response(
param0: org.jsoup.Connection.Response,
): org.jsoup.Connection;
public timeout(param0: number): org.jsoup.Connection;
public data(
param0: string,
param1: string,
param2: java.io.InputStream,
param3: string,
): org.jsoup.Connection;
public ignoreHttpErrors(param0: boolean): org.jsoup.Connection;
public cookie(param0: string, param1: string): org.jsoup.Connection;
public postDataCharset(param0: string): org.jsoup.Connection;
public constructor();
public parser(param0: org.jsoup.parser.Parser): org.jsoup.Connection;
public get(): org.jsoup.nodes.Document;
public request(
param0: org.jsoup.Connection.Request,
): org.jsoup.Connection;
public ignoreContentType(param0: boolean): org.jsoup.Connection;
public data(
param0: java.util.Collection<org.jsoup.Connection.KeyVal>,
): org.jsoup.Connection;
public userAgent(param0: string): org.jsoup.Connection;
public request(): org.jsoup.Connection.Request;
public static connect(param0: java.net.URL): org.jsoup.Connection;
public maxBodySize(param0: number): org.jsoup.Connection;
public followRedirects(param0: boolean): org.jsoup.Connection;
public method(
param0: org.jsoup.Connection.Method,
): org.jsoup.Connection;
public response(): org.jsoup.Connection.Response;
public data(param0: string): org.jsoup.Connection.KeyVal;
public headers(
param0: java.util.Map<string, string>,
): org.jsoup.Connection;
public execute(): org.jsoup.Connection.Response;
public url(param0: string): org.jsoup.Connection;
public header(param0: string, param1: string): org.jsoup.Connection;
public data(
param0: string,
param1: string,
param2: java.io.InputStream,
): org.jsoup.Connection;
public proxy(param0: java.net.Proxy): org.jsoup.Connection;
public requestBody(param0: string): org.jsoup.Connection;
public cookies(
param0: java.util.Map<string, string>,
): org.jsoup.Connection;
public data(
param0: java.util.Map<string, string>,
): org.jsoup.Connection;
public static connect(param0: string): org.jsoup.Connection;
public static encodeUrl(param0: java.net.URL): java.net.URL;
public url(param0: java.net.URL): org.jsoup.Connection;
}
export module HttpConnection {
export class Base<T> extends org.jsoup.Connection.Base<any> {
public static class: java.lang.Class<
org.jsoup.helper.HttpConnection.Base<any>
>;
public cookie(param0: string): string;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public hasCookie(param0: string): boolean;
public header(param0: string): string;
public removeCookie(param0: string): any;
public url(): java.net.URL;
public headers(param0: string): java.util.List<string>;
public method(param0: org.jsoup.Connection.Method): any;
public cookies(): java.util.Map<string, string>;
public method(): org.jsoup.Connection.Method;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public removeHeader(param0: string): any;
public addHeader(param0: string, param1: string): any;
public header(param0: string, param1: string): any;
public headers(): java.util.Map<string, string>;
public url(param0: java.net.URL): any;
public cookie(param0: string, param1: string): any;
public hasHeader(param0: string): boolean;
}
export class KeyVal extends org.jsoup.Connection.KeyVal {
public static class: java.lang.Class<org.jsoup.helper.HttpConnection.KeyVal>;
public contentType(): string;
public inputStream(
param0: java.io.InputStream,
): org.jsoup.helper.HttpConnection.KeyVal;
public key(): string;
public value(): string;
public value(param0: string): org.jsoup.helper.HttpConnection.KeyVal;
public toString(): string;
public static create(
param0: string,
param1: string,
param2: java.io.InputStream,
): org.jsoup.helper.HttpConnection.KeyVal;
public contentType(param0: string): org.jsoup.Connection.KeyVal;
public inputStream(
param0: java.io.InputStream,
): org.jsoup.Connection.KeyVal;
public key(param0: string): org.jsoup.Connection.KeyVal;
public inputStream(): java.io.InputStream;
public key(param0: string): org.jsoup.helper.HttpConnection.KeyVal;
public value(param0: string): org.jsoup.Connection.KeyVal;
public static create(
param0: string,
param1: string,
): org.jsoup.helper.HttpConnection.KeyVal;
public hasInputStream(): boolean;
}
export class Request
extends org.jsoup.helper.HttpConnection
.Base<org.jsoup.Connection.Request>
implements org.jsoup.Connection.Request
{
public static class: java.lang.Class<org.jsoup.helper.HttpConnection.Request>;
public postDataCharset(): string;
public proxy(): java.net.Proxy;
public sslSocketFactory(param0: javax.net.ssl.SSLSocketFactory): void;
public parser(
param0: org.jsoup.parser.Parser,
): org.jsoup.helper.HttpConnection.Request;
public cookie(param0: string): string;
public timeout(): number;
public timeout(
param0: number,
): org.jsoup.helper.HttpConnection.Request;
public header(param0: string): string;
public removeCookie(param0: string): any;
public followRedirects(): boolean;
public headers(param0: string): java.util.List<string>;
public followRedirects(param0: boolean): org.jsoup.Connection.Request;
public method(param0: org.jsoup.Connection.Method): any;
public data(
param0: org.jsoup.Connection.KeyVal,
): org.jsoup.helper.HttpConnection.Request;
public parser(
param0: org.jsoup.parser.Parser,
): org.jsoup.Connection.Request;
public cookies(): java.util.Map<string, string>;
public proxy(
param0: string,
param1: number,
): org.jsoup.Connection.Request;
public maxBodySize(param0: number): org.jsoup.Connection.Request;
public data(): java.util.Collection<org.jsoup.Connection.KeyVal>;
public ignoreContentType(
param0: boolean,
): org.jsoup.Connection.Request;
public addHeader(param0: string, param1: string): any;
public header(param0: string, param1: string): any;
public constructor();
public headers(): java.util.Map<string, string>;
public ignoreContentType(): boolean;
public data(
param0: org.jsoup.Connection.KeyVal,
): org.jsoup.Connection.Request;
public ignoreHttpErrors(): boolean;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public hasCookie(param0: string): boolean;
public url(): java.net.URL;
public postDataCharset(param0: string): org.jsoup.Connection.Request;
public requestBody(param0: string): org.jsoup.Connection.Request;
public parser(): org.jsoup.parser.Parser;
public method(): org.jsoup.Connection.Method;
public maxBodySize(): number;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public removeHeader(param0: string): any;
public proxy(
param0: string,
param1: number,
): org.jsoup.helper.HttpConnection.Request;
public timeout(param0: number): org.jsoup.Connection.Request;
public proxy(
param0: java.net.Proxy,
): org.jsoup.helper.HttpConnection.Request;
public sslSocketFactory(): javax.net.ssl.SSLSocketFactory;
public url(param0: java.net.URL): any;
public ignoreHttpErrors(
param0: boolean,
): org.jsoup.Connection.Request;
public proxy(param0: java.net.Proxy): org.jsoup.Connection.Request;
public cookie(param0: string, param1: string): any;
public hasHeader(param0: string): boolean;
public requestBody(): string;
}
export class Response
extends org.jsoup.helper.HttpConnection
.Base<org.jsoup.Connection.Response>
implements org.jsoup.Connection.Response
{
public static class: java.lang.Class<org.jsoup.helper.HttpConnection.Response>;
public cookie(param0: string): string;
public header(param0: string): string;
public removeCookie(param0: string): any;
public headers(param0: string): java.util.List<string>;
public method(param0: org.jsoup.Connection.Method): any;
public cookies(): java.util.Map<string, string>;
public statusMessage(): string;
public bodyStream(): java.io.BufferedInputStream;
public static execute(
param0: org.jsoup.Connection.Request,
): org.jsoup.helper.HttpConnection.Response;
public addHeader(param0: string, param1: string): any;
public header(param0: string, param1: string): any;
public constructor();
public headers(): java.util.Map<string, string>;
public bufferUp(): org.jsoup.Connection.Response;
public static '<clinit>'(): void;
public bodyAsBytes(): androidNative.Array<number>;
public static execute(
param0: org.jsoup.Connection.Request,
param1: org.jsoup.helper.HttpConnection.Response,
): org.jsoup.helper.HttpConnection.Response;
public contentType(): string;
public parse(): org.jsoup.nodes.Document;
public hasHeaderWithValue(param0: string, param1: string): boolean;
public hasCookie(param0: string): boolean;
public url(): java.net.URL;
public charset(param0: string): org.jsoup.Connection.Response;
public statusCode(): number;
public method(): org.jsoup.Connection.Method;
public charset(): string;
public multiHeaders(): java.util.Map<string, java.util.List<string>>;
public removeHeader(param0: string): any;
public processResponseHeaders(
param0: java.util.Map<string, java.util.List<string>>,
): void;
public charset(
param0: string,
): org.jsoup.helper.HttpConnection.Response;
public body(): string;
public url(param0: java.net.URL): any;
public cookie(param0: string, param1: string): any;
public hasHeader(param0: string): boolean;
}
}
export class Validate {
public static class: java.lang.Class<org.jsoup.helper.Validate>;
public static notEmpty(param0: string): void;
public static wtf(param0: string): void;
public static noNullElements(
param0: androidNative.Array<any>,
param1: string,
): void;
public static notNull(param0: any): void;
public static notEmpty(param0: string, param1: string): void;
public static isFalse(param0: boolean): void;
public static isTrue(param0: boolean, param1: string): void;
public static isTrue(param0: boolean): void;
public static fail(param0: string): void;
public static isFalse(param0: boolean, param1: string): void;
public static noNullElements(param0: androidNative.Array<any>): void;
public static notNull(param0: any, param1: string): void;
}
export class W3CDom {
public static class: java.lang.Class<org.jsoup.helper.W3CDom>;
public factory: javax.xml.parsers.DocumentBuilderFactory;
public static propertiesFromMap(
param0: java.util.Map<string, string>,
): java.util.Properties;
public fromJsoup(
param0: org.jsoup.nodes.Document,
): org.w3c.dom.Document;
public static OutputXml(): java.util.HashMap<string, string>;
public static convert(
param0: org.jsoup.nodes.Document,
): org.w3c.dom.Document;
public convert(
param0: org.jsoup.nodes.Document,
param1: org.w3c.dom.Document,
): void;
public static OutputHtml(): java.util.HashMap<string, string>;
public static asString(
param0: org.w3c.dom.Document,
param1: java.util.Map<string, string>,
): string;
public constructor();
public asString(param0: org.w3c.dom.Document): string;
}
export module W3CDom {
export class W3CBuilder extends org.jsoup.select.NodeVisitor {
public static class: java.lang.Class<org.jsoup.helper.W3CDom.W3CBuilder>;
public constructor(param0: org.w3c.dom.Document);
public tail(param0: org.jsoup.nodes.Node, param1: number): void;
public head(param0: org.jsoup.nodes.Node, param1: number): void;
}
}
}
export module internal {
export class ConstrainableInputStream {
public static class: java.lang.Class<org.jsoup.internal.ConstrainableInputStream>;
public reset(): void;
public static wrap(
param0: java.io.InputStream,
param1: number,
param2: number,
): org.jsoup.internal.ConstrainableInputStream;
public timeout(
param0: number,
param1: number,
): org.jsoup.internal.ConstrainableInputStream;
public read(
param0: androidNative.Array<number>,
param1: number,
param2: number,
): number;
public readToByteBuffer(param0: number): java.nio.ByteBuffer;
}
export class Normalizer {
public static class: java.lang.Class<org.jsoup.internal.Normalizer>;
public static lowerCase(param0: string): string;
public static normalize(param0: string): string;
public static normalize(param0: string, param1: boolean): string;
public constructor();
}
export class StringUtil {
public static class: java.lang.Class<org.jsoup.internal.StringUtil>;
public static normaliseWhitespace(param0: string): string;
public static appendNormalisedWhitespace(
param0: java.lang.StringBuilder,
param1: string,
param2: boolean,
): void;
public static isNumeric(param0: string): boolean;
public static isWhitespace(param0: number): boolean;
public static isActuallyWhitespace(param0: number): boolean;
public static resolve(param0: string, param1: string): string;
public constructor();
public static borrowBuilder(): java.lang.StringBuilder;
public static padding(param0: number): string;
public static releaseBuilder(param0: java.lang.StringBuilder): string;
public static '<clinit>'(): void;
public static isBlank(param0: string): boolean;
public static isInvisibleChar(param0: number): boolean;
public static join(
param0: androidNative.Array<string>,
param1: string,
): string;
public static in(
param0: string,
param1: androidNative.Array<string>,
): boolean;
public static join(
param0: java.util.Collection<any>,
param1: string,
): string;
public static join(
param0: java.util.Iterator<any>,
param1: string,
): string;
public static resolve(
param0: java.net.URL,
param1: string,
): java.net.URL;
public static inSorted(
param0: string,
param1: androidNative.Array<string>,
): boolean;
}
}
export module nodes {
export class Attribute extends java.lang.Object {
public static class: java.lang.Class<org.jsoup.nodes.Attribute>;
public parent: org.jsoup.nodes.Attributes;
public clone(): org.jsoup.nodes.Attribute;
public static createFromEncoded(
param0: string,
param1: string,
): org.jsoup.nodes.Attribute;
public getValue(): string;
public static html(
param0: string,
param1: string,
param2: java.lang.Appendable,
param3: org.jsoup.nodes.Document.OutputSettings,
): void;
public toString(): string;
public setKey(param0: string): void;
public getKey(): string;
public static shouldCollapseAttribute(
param0: string,
param1: string,
param2: org.jsoup.nodes.Document.OutputSettings,
): boolean;
public shouldCollapseAttribute(
param0: org.jsoup.nodes.Document.OutputSettings,
): boolean;
public constructor(
param0: string,
param1: string,
param2: org.jsoup.nodes.Attributes,
);
public static '<clinit>'(): void;
public setValue(param0: string): string;
public hasDeclaredValue(): boolean;
public static isDataAttribute(param0: string): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public static isBooleanAttribute(param0: string): boolean;
public isDataAttribute(): boolean;
public constructor(param0: string, param1: string);
public html(): string;
public html(
param0: java.lang.Appendable,
param1: org.jsoup.nodes.Document.OutputSettings,
): void;
}
export class Attributes extends java.lang.Object {
public static class: java.lang.Class<org.jsoup.nodes.Attributes>;
public static InternalPrefix: string;
public static NotFound: number;
public static dataPrefix: string;
public keys: androidNative.Array<string>;
public vals: androidNative.Array<string>;
public addAll(param0: org.jsoup.nodes.Attributes): void;
public dataset(): java.util.Map<string, string>;
public hasDeclaredValueForKeyIgnoreCase(param0: string): boolean;
public constructor();
public normalize(): void;
public static '<clinit>'(): void;
public static checkNotNull(param0: string): string;
public put(param0: string, param1: string): org.jsoup.nodes.Attributes;
public putIgnoreCase(param0: string, param1: string): void;
public hashCode(): number;
public indexOfKey(param0: string): number;
public equals(param0: any): boolean;
public clone(): org.jsoup.nodes.Attributes;
public isEmpty(): boolean;
public static internalKey(param0: string): string;
public get(param0: string): string;
public hasKeyIgnoreCase(param0: string): boolean;
public deduplicate(param0: org.jsoup.parser.ParseSettings): number;
public hasKey(param0: string): boolean;
public toString(): string;
public size(): number;
public removeIgnoreCase(param0: string): void;
public getIgnoreCase(param0: string): string;
public put(param0: string, param1: boolean): org.jsoup.nodes.Attributes;
public asList(): java.util.List<org.jsoup.nodes.Attribute>;
public remove(param0: string): void;
public add(param0: string, param1: string): org.jsoup.nodes.Attributes;
public put(
param0: org.jsoup.nodes.Attribute,
): org.jsoup.nodes.Attributes;
public hasDeclaredValueForKey(param0: string): boolean;
public html(): string;
public html(
param0: java.lang.Appendable,
param1: org.jsoup.nodes.Document.OutputSettings,
): void;
public iterator(): java.util.Iterator<org.jsoup.nodes.Attribute>;
}
export module Attributes {
export class Dataset extends java.util.AbstractMap<string, string> {
public static class: java.lang.Class<org.jsoup.nodes.Attributes.Dataset>;
public entrySet(): java.util.Set<java.util.Map.Entry<string, string>>;