-
Notifications
You must be signed in to change notification settings - Fork 0
/
CharsetEncoder.xml
1521 lines (1492 loc) · 99.6 KB
/
CharsetEncoder.xml
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
<Type Name="CharsetEncoder" FullName="Java.Nio.Charset.CharsetEncoder">
<TypeSignature Language="C#" Value="public abstract class CharsetEncoder : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit CharsetEncoder extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Java.Nio.Charset.CharsetEncoder" />
<TypeSignature Language="F#" Value="type CharsetEncoder = class
 inherit Object" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/nio/charset/CharsetEncoder", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/nio/charset/CharsetEncoder", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>An engine that can transform a sequence of sixteen-bit Unicode characters into a sequence of
bytes in a specific charset.</summary>
<remarks>
<para>An engine that can transform a sequence of sixteen-bit Unicode characters into a sequence of
bytes in a specific charset.
"steps"></para>
<para>The input character sequence is provided in a character buffer or a series
of such buffers. The output byte sequence is written to a byte buffer
or a series of such buffers. An encoder should always be used by making
the following sequence of method invocations, hereinafter referred to as an
<i>encoding operation</i>:
<ol>
<li></para>
<para>Reset the encoder via the <c>#reset reset</c> method, unless it
has not been used before;</para>
<para></li>
<li></para>
<para>Invoke the <c>#encode encode</c> method zero or more times, as
long as additional input may be available, passing <c>false</c> for the
<c>endOfInput</c> argument and filling the input buffer and flushing the
output buffer between invocations;</para>
<para></li>
<li></para>
<para>Invoke the <c>#encode encode</c> method one final time, passing
<c>true</c> for the <c>endOfInput</c> argument; and then</para>
<para></li>
<li></para>
<para>Invoke the <c>#flush flush</c> method so that the encoder can
flush any internal state to the output buffer.</para>
<para></li>
</ol>
Each invocation of the <c>#encode encode</c> method will encode as many
characters as possible from the input buffer, writing the resulting bytes
to the output buffer. The <c>#encode encode</c> method returns when more
input is required, when there is not enough room in the output buffer, or
when an encoding error has occurred. In each case a <c>CoderResult</c>
object is returned to describe the reason for termination. An invoker can
examine this object and fill the input buffer, flush the output buffer, or
attempt to recover from an encoding error, as appropriate, and try again.
"ce"></para>
<para>There are two general types of encoding errors. If the input character
sequence is not a legal sixteen-bit Unicode sequence then the input is considered <i>malformed</i>. If
the input character sequence is legal but cannot be mapped to a valid
byte sequence in the given charset then an <i>unmappable character</i> has been encountered.
"cae"></para>
<para>How an encoding error is handled depends upon the action requested for
that type of error, which is described by an instance of the <c>CodingErrorAction</c> class. The possible error actions are to CodingErrorAction#IGNORE ignore the erroneous input, CodingErrorAction#REPORT report the error to the invoker via
the returned <c>CoderResult</c> object, or CodingErrorAction#REPLACE
replace the erroneous input with the current value of the
replacement byte array. The replacement
is initially set to the encoder's default replacement, which often
(but not always) has the initial value&nbsp;<c>{</c>&nbsp;<c>(byte)'?'</c>&nbsp;<c>}</c>;
its value may be changed via the <c>#replaceWith(byte[])
replaceWith</c> method.</para>
<para>The default action for malformed-input and unmappable-character errors
is to CodingErrorAction#REPORT report them. The
malformed-input error action may be changed via the <c>#onMalformedInput(CodingErrorAction) onMalformedInput</c> method; the
unmappable-character action may be changed via the <c>#onUnmappableCharacter(CodingErrorAction) onUnmappableCharacter</c> method.</para>
<para>This class is designed to handle many of the details of the encoding
process, including the implementation of error actions. An encoder for a
specific charset, which is a concrete subclass of this class, need only
implement the abstract <c>#encodeLoop encodeLoop</c> method, which
encapsulates the basic encoding loop. A subclass that maintains internal
state should, additionally, override the <c>#implFlush implFlush</c> and
<c>#implReset implReset</c> methods.</para>
<para>Instances of this class are not safe for use by multiple concurrent
threads.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CharsetEncoder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Nio.Charset.CharsetEncoder : nativeint * Android.Runtime.JniHandleOwnership -> Java.Nio.Charset.CharsetEncoder" Usage="new Java.Nio.Charset.CharsetEncoder (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CharsetEncoder (Java.Nio.Charset.Charset? cs, float averageBytesPerChar, float maxBytesPerChar);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Nio.Charset.Charset cs, float32 averageBytesPerChar, float32 maxBytesPerChar) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.#ctor(Java.Nio.Charset.Charset,System.Single,System.Single)" />
<MemberSignature Language="F#" Value="new Java.Nio.Charset.CharsetEncoder : Java.Nio.Charset.Charset * single * single -> Java.Nio.Charset.CharsetEncoder" Usage="new Java.Nio.Charset.CharsetEncoder (cs, averageBytesPerChar, maxBytesPerChar)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="cs" Type="Java.Nio.Charset.Charset" />
<Parameter Name="averageBytesPerChar" Type="System.Single" />
<Parameter Name="maxBytesPerChar" Type="System.Single" />
</Parameters>
<Docs>
<param name="cs">The charset that created this encoder</param>
<param name="averageBytesPerChar">A positive float value indicating the expected number of
bytes that will be produced for each input character</param>
<param name="maxBytesPerChar">A positive float value indicating the maximum number of
bytes that will be produced for each input character</param>
<summary>Initializes a new encoder.</summary>
<remarks>
<para>Initializes a new encoder. The new encoder will have the given
bytes-per-char values and its replacement will be the
byte array <c>{</c>&nbsp;<c>(byte)'?'</c>&nbsp;<c>}</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#CharsetEncoder(java.nio.charset.Charset,%20float,%20float)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.CharsetEncoder(java.nio.charset.Charset, float, float)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CharsetEncoder (Java.Nio.Charset.Charset? cs, float averageBytesPerChar, float maxBytesPerChar, byte[]? replacement);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Nio.Charset.Charset cs, float32 averageBytesPerChar, float32 maxBytesPerChar, unsigned int8[] replacement) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.#ctor(Java.Nio.Charset.Charset,System.Single,System.Single,System.Byte[])" />
<MemberSignature Language="F#" Value="new Java.Nio.Charset.CharsetEncoder : Java.Nio.Charset.Charset * single * single * byte[] -> Java.Nio.Charset.CharsetEncoder" Usage="new Java.Nio.Charset.CharsetEncoder (cs, averageBytesPerChar, maxBytesPerChar, replacement)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF[B)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF[B)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="cs" Type="Java.Nio.Charset.Charset" />
<Parameter Name="averageBytesPerChar" Type="System.Single" />
<Parameter Name="maxBytesPerChar" Type="System.Single" />
<Parameter Name="replacement" Type="System.Byte[]" />
</Parameters>
<Docs>
<param name="cs">The charset that created this encoder</param>
<param name="averageBytesPerChar">A positive float value indicating the expected number of
bytes that will be produced for each input character</param>
<param name="maxBytesPerChar">A positive float value indicating the maximum number of
bytes that will be produced for each input character</param>
<param name="replacement">The initial replacement; must not be <c>null</c>, must have
non-zero length, must not be longer than maxBytesPerChar,
and must be #isLegalReplacement legal</param>
<summary>Initializes a new encoder.</summary>
<remarks>
<para>Initializes a new encoder. The new encoder will have the given
bytes-per-char and replacement values.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#CharsetEncoder(java.nio.charset.Charset,%20float,%20float,%20byte[])" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.CharsetEncoder(java.nio.charset.Charset, float, float, byte[])</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalArgumentException">if any parameters are invalid.
</exception>
</Docs>
</Member>
<Member MemberName="AverageBytesPerChar">
<MemberSignature Language="C#" Value="public float AverageBytesPerChar ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance float32 AverageBytesPerChar() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.AverageBytesPerChar" />
<MemberSignature Language="F#" Value="member this.AverageBytesPerChar : unit -> single" Usage="charsetEncoder.AverageBytesPerChar " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("averageBytesPerChar", "()F", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("averageBytesPerChar", "()F", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the average number of bytes that will be produced for each
character of input.</summary>
<returns>The average number of bytes produced
per character of input</returns>
<remarks>
<para>Returns the average number of bytes that will be produced for each
character of input. This heuristic value may be used to estimate the size
of the output buffer required for a given input sequence.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#averageBytesPerChar()" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.averageBytesPerChar()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="CanEncode">
<MemberSignature Language="C#" Value="public virtual bool CanEncode (Java.Lang.ICharSequence? cs);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanEncode(class Java.Lang.ICharSequence cs) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.CanEncode(Java.Lang.ICharSequence)" />
<MemberSignature Language="F#" Value="abstract member CanEncode : Java.Lang.ICharSequence -> bool
override this.CanEncode : Java.Lang.ICharSequence -> bool" Usage="charsetEncoder.CanEncode cs" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canEncode", "(Ljava/lang/CharSequence;)Z", "GetCanEncode_Ljava_lang_CharSequence_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canEncode", "(Ljava/lang/CharSequence;)Z", "GetCanEncode_Ljava_lang_CharSequence_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cs" Type="Java.Lang.ICharSequence" />
</Parameters>
<Docs>
<param name="cs">The given character sequence</param>
<summary>Tells whether or not this encoder can encode the given character
sequence.</summary>
<returns>
<c>true</c> if, and only if, this encoder can encode
the given character without throwing any exceptions and without
performing any replacements</returns>
<remarks>
<para>Tells whether or not this encoder can encode the given character
sequence.</para>
<para>If this method returns <c>false</c> for a particular character
sequence then more information about why the sequence cannot be encoded
may be obtained by performing a full encoding
operation.</para>
<para>This method may modify this encoder's state; it should therefore not
be invoked if an encoding operation is already in progress.</para>
<para>The default implementation of this method is not very efficient; it
should generally be overridden to improve performance.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#canEncode(java.lang.CharSequence)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.canEncode(java.lang.CharSequence)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalStateException">if another encode process is ongoing.
</exception>
</Docs>
</Member>
<Member MemberName="CanEncode">
<MemberSignature Language="C#" Value="public virtual bool CanEncode (char c);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanEncode(char c) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.CanEncode(System.Char)" />
<MemberSignature Language="F#" Value="abstract member CanEncode : char -> bool
override this.CanEncode : char -> bool" Usage="charsetEncoder.CanEncode c" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canEncode", "(C)Z", "GetCanEncode_CHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canEncode", "(C)Z", "GetCanEncode_CHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="c" Type="System.Char" />
</Parameters>
<Docs>
<param name="c">The given character</param>
<summary>Tells whether or not this encoder can encode the given character.</summary>
<returns>
<c>true</c> if, and only if, this encoder can encode
the given character</returns>
<remarks>
<para>Tells whether or not this encoder can encode the given character.</para>
<para>This method returns <c>false</c> if the given character is a
surrogate character; such characters can be interpreted only when they
are members of a pair consisting of a high surrogate followed by a low
surrogate. The <c>#canEncode(java.lang.CharSequence)
canEncode(CharSequence)</c> method may be used to test whether or not a
character sequence can be encoded.</para>
<para>This method may modify this encoder's state; it should therefore not
be invoked if an encoding operation is already in
progress.</para>
<para>The default implementation of this method is not very efficient; it
should generally be overridden to improve performance.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#canEncode(char)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.canEncode(char)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalStateException">if another encode process is ongoing.
</exception>
</Docs>
</Member>
<Member MemberName="CanEncode">
<MemberSignature Language="C#" Value="public bool CanEncode (string? cs);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool CanEncode(string cs) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.CanEncode(System.String)" />
<MemberSignature Language="F#" Value="member this.CanEncode : string -> bool" Usage="charsetEncoder.CanEncode cs" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cs" Type="System.String" />
</Parameters>
<Docs>
<param name="cs">The given character sequence</param>
<summary>Tells whether or not this encoder can encode the given character
sequence.</summary>
<returns>
<c>true</c> if, and only if, this encoder can encode
the given character without throwing any exceptions and without
performing any replacements</returns>
<remarks>
<para>Tells whether or not this encoder can encode the given character
sequence.</para>
<para>If this method returns <c>false</c> for a particular character
sequence then more information about why the sequence cannot be encoded
may be obtained by performing a full encoding
operation.</para>
<para>This method may modify this encoder's state; it should therefore not
be invoked if an encoding operation is already in progress.</para>
<para>The default implementation of this method is not very efficient; it
should generally be overridden to improve performance.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#canEncode(java.lang.CharSequence)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.canEncode(java.lang.CharSequence)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Charset">
<MemberSignature Language="C#" Value="public Java.Nio.Charset.Charset? Charset ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Nio.Charset.Charset Charset() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.Charset" />
<MemberSignature Language="F#" Value="member this.Charset : unit -> Java.Nio.Charset.Charset" Usage="charsetEncoder.Charset " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("charset", "()Ljava/nio/charset/Charset;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("charset", "()Ljava/nio/charset/Charset;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Charset.Charset</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the charset that created this encoder.</summary>
<returns>This encoder's charset</returns>
<remarks>
<para>Returns the charset that created this encoder.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#charset()" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.charset()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Encode">
<MemberSignature Language="C#" Value="public Java.Nio.ByteBuffer? Encode (Java.Nio.CharBuffer? in);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Nio.ByteBuffer Encode(class Java.Nio.CharBuffer in) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.Encode(Java.Nio.CharBuffer)" />
<MemberSignature Language="F#" Value="member this.Encode : Java.Nio.CharBuffer -> Java.Nio.ByteBuffer" Usage="charsetEncoder.Encode in" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("encode", "(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("encode", "(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.ByteBuffer</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="in" Type="Java.Nio.CharBuffer" />
</Parameters>
<Docs>
<param name="in">The input character buffer</param>
<summary>Convenience method that encodes the remaining content of a single input
character buffer into a newly-allocated byte buffer.</summary>
<returns>A newly-allocated byte buffer containing the result of the
encoding operation. The buffer's position will be zero and its
limit will follow the last byte written.</returns>
<remarks>
<para>Convenience method that encodes the remaining content of a single input
character buffer into a newly-allocated byte buffer.</para>
<para>This method implements an entire encoding
operation; that is, it resets this encoder, then it encodes the
characters in the given character buffer, and finally it flushes this
encoder. This method should therefore not be invoked if an encoding
operation is already in progress.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#encode(java.nio.CharBuffer)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.encode(java.nio.CharBuffer)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalStateException">if another encoding operation is ongoing.</exception>
<exception cref="T:Java.Nio.Charset.MalformedInputException">if an illegal input character sequence for this charset is
encountered, and the action for malformed error is
<see cref="P:Java.Nio.Charset.CodingErrorAction.Report" /></exception>
<exception cref="T:Java.Nio.Charset.UnmappableCharacterException">if a legal but unmappable input character sequence for this
charset is encountered, and the action for unmappable
character error is
<see cref="P:Java.Nio.Charset.CodingErrorAction.Report" />.
Unmappable means the Unicode character sequence at the input
buffer's current position cannot be mapped to a equivalent
byte sequence.</exception>
<exception cref="T:Java.Nio.Charset.CharacterCodingException">if other exception happened during the encode operation.
</exception>
</Docs>
</Member>
<Member MemberName="Encode">
<MemberSignature Language="C#" Value="public Java.Nio.Charset.CoderResult? Encode (Java.Nio.CharBuffer? in, Java.Nio.ByteBuffer? out, bool endOfInput);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Nio.Charset.CoderResult Encode(class Java.Nio.CharBuffer in, class Java.Nio.ByteBuffer out, bool endOfInput) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.Encode(Java.Nio.CharBuffer,Java.Nio.ByteBuffer,System.Boolean)" />
<MemberSignature Language="F#" Value="member this.Encode : Java.Nio.CharBuffer * Java.Nio.ByteBuffer * bool -> Java.Nio.Charset.CoderResult" Usage="charsetEncoder.Encode (in, out, endOfInput)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("encode", "(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("encode", "(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Charset.CoderResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="in" Type="Java.Nio.CharBuffer" />
<Parameter Name="out" Type="Java.Nio.ByteBuffer" />
<Parameter Name="endOfInput" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="in">The input character buffer</param>
<param name="out">The output byte buffer</param>
<param name="endOfInput">
<c>true</c> if, and only if, the invoker can provide no
additional input characters beyond those in the given buffer</param>
<summary>Encodes as many characters as possible from the given input buffer,
writing the results to the given output buffer.</summary>
<returns>A coder-result object describing the reason for termination</returns>
<remarks>
<para>Encodes as many characters as possible from the given input buffer,
writing the results to the given output buffer.</para>
<para>The buffers are read from, and written to, starting at their current
positions. At most <c>Buffer#remaining in.remaining()</c> characters
will be read and at most <c>Buffer#remaining out.remaining()</c>
bytes will be written. The buffers' positions will be advanced to
reflect the characters read and the bytes written, but their marks and
limits will not be modified.</para>
<para>In addition to reading characters from the input buffer and writing
bytes to the output buffer, this method returns a <c>CoderResult</c>
object to describe its reason for termination:
<ul>
<li></para>
<para>
<c>CoderResult#UNDERFLOW</c> indicates that as much of the
input buffer as possible has been encoded. If there is no further
input then the invoker can proceed to the next step of the
encoding operation. Otherwise this method
should be invoked again with further input.</para>
<para></li>
<li></para>
<para>
<c>CoderResult#OVERFLOW</c> indicates that there is
insufficient space in the output buffer to encode any more characters.
This method should be invoked again with an output buffer that has
more Buffer#remaining remaining bytes. This is
typically done by draining any encoded bytes from the output
buffer.</para>
<para></li>
<li></para>
<para>A CoderResult#malformedForLength
malformed-input result indicates that a malformed-input
error has been detected. The malformed characters begin at the input
buffer's (possibly incremented) position; the number of malformed
characters may be determined by invoking the result object's <c>CoderResult#length() length</c> method. This case applies only if the
#onMalformedInput malformed action of this encoder
is <c>CodingErrorAction#REPORT</c>; otherwise the malformed input
will be ignored or replaced, as requested.</para>
<para></li>
<li></para>
<para>An CoderResult#unmappableForLength
unmappable-character result indicates that an
unmappable-character error has been detected. The characters that
encode the unmappable character begin at the input buffer's (possibly
incremented) position; the number of such characters may be determined
by invoking the result object's <c>CoderResult#length() length</c>
method. This case applies only if the #onUnmappableCharacter
unmappable action of this encoder is <c>CodingErrorAction#REPORT</c>; otherwise the unmappable character will be
ignored or replaced, as requested.</para>
<para></li>
</ul>
In any case, if this method is to be reinvoked in the same encoding
operation then care should be taken to preserve any characters remaining
in the input buffer so that they are available to the next invocation.</para>
<para>The <c>endOfInput</c> parameter advises this method as to whether
the invoker can provide further input beyond that contained in the given
input buffer. If there is a possibility of providing additional input
then the invoker should pass <c>false</c> for this parameter; if there
is no possibility of providing further input then the invoker should
pass <c>true</c>. It is not erroneous, and in fact it is quite
common, to pass <c>false</c> in one invocation and later discover that
no further input was actually available. It is critical, however, that
the final invocation of this method in a sequence of invocations always
pass <c>true</c> so that any remaining unencoded input will be treated
as being malformed.</para>
<para>This method works by invoking the <c>#encodeLoop encodeLoop</c>
method, interpreting its results, handling error conditions, and
reinvoking it as necessary.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#encode(java.nio.CharBuffer,%20java.nio.ByteBuffer,%20boolean)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.encode(java.nio.CharBuffer, java.nio.ByteBuffer, boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalStateException">if the encoding operation has already started or no more
input is needed in this encoding process.</exception>
<exception cref="T:Java.Nio.Charset.CoderMalfunctionError">If the <see cref="M:Java.Nio.Charset.CharsetEncoder.EncodeLoop(Java.Nio.CharBuffer,Java.Nio.ByteBuffer)" />
method threw an <c>BufferUnderflowException</c> or
<c>BufferUnderflowException</c>.
</exception>
</Docs>
</Member>
<Member MemberName="EncodeLoop">
<MemberSignature Language="C#" Value="protected abstract Java.Nio.Charset.CoderResult? EncodeLoop (Java.Nio.CharBuffer? in, Java.Nio.ByteBuffer? out);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance class Java.Nio.Charset.CoderResult EncodeLoop(class Java.Nio.CharBuffer in, class Java.Nio.ByteBuffer out) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.EncodeLoop(Java.Nio.CharBuffer,Java.Nio.ByteBuffer)" />
<MemberSignature Language="F#" Value="abstract member EncodeLoop : Java.Nio.CharBuffer * Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult" Usage="charsetEncoder.EncodeLoop (in, out)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("encodeLoop", "(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetEncodeLoop_Ljava_nio_CharBuffer_Ljava_nio_ByteBuffer_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("encodeLoop", "(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetEncodeLoop_Ljava_nio_CharBuffer_Ljava_nio_ByteBuffer_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Charset.CoderResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="in" Type="Java.Nio.CharBuffer" />
<Parameter Name="out" Type="Java.Nio.ByteBuffer" />
</Parameters>
<Docs>
<param name="in">The input character buffer</param>
<param name="out">The output byte buffer</param>
<summary>Encodes one or more characters into one or more bytes.</summary>
<returns>A coder-result object describing the reason for termination</returns>
<remarks>
<para>Encodes one or more characters into one or more bytes.</para>
<para>This method encapsulates the basic encoding loop, encoding as many
characters as possible until it either runs out of input, runs out of room
in the output buffer, or encounters an encoding error. This method is
invoked by the <c>#encode encode</c> method, which handles result
interpretation and error recovery.</para>
<para>The buffers are read from, and written to, starting at their current
positions. At most <c>Buffer#remaining in.remaining()</c> characters
will be read, and at most <c>Buffer#remaining out.remaining()</c>
bytes will be written. The buffers' positions will be advanced to
reflect the characters read and the bytes written, but their marks and
limits will not be modified.</para>
<para>This method returns a <c>CoderResult</c> object to describe its
reason for termination, in the same manner as the <c>#encode encode</c>
method. Most implementations of this method will handle encoding errors
by returning an appropriate result object for interpretation by the
<c>#encode encode</c> method. An optimized implementation may instead
examine the relevant error action and implement that action itself.</para>
<para>An implementation of this method may perform arbitrary lookahead by
returning <c>CoderResult#UNDERFLOW</c> until it receives sufficient
input.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#encodeLoop(java.nio.CharBuffer,%20java.nio.ByteBuffer)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Flush">
<MemberSignature Language="C#" Value="public Java.Nio.Charset.CoderResult? Flush (Java.Nio.ByteBuffer? out);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Nio.Charset.CoderResult Flush(class Java.Nio.ByteBuffer out) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.Flush(Java.Nio.ByteBuffer)" />
<MemberSignature Language="F#" Value="member this.Flush : Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult" Usage="charsetEncoder.Flush out" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("flush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("flush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Charset.CoderResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="out" Type="Java.Nio.ByteBuffer" />
</Parameters>
<Docs>
<param name="out">The output byte buffer</param>
<summary>Flushes this encoder.</summary>
<returns>A coder-result object, either <c>CoderResult#UNDERFLOW</c> or
<c>CoderResult#OVERFLOW</c></returns>
<remarks>
<para>Flushes this encoder.</para>
<para>Some encoders maintain internal state and may need to write some
final bytes to the output buffer once the overall input sequence has
been read.</para>
<para>Any additional output is written to the output buffer beginning at
its current position. At most <c>Buffer#remaining out.remaining()</c>
bytes will be written. The buffer's position will be advanced
appropriately, but its mark and limit will not be modified.</para>
<para>If this method completes successfully then it returns <c>CoderResult#UNDERFLOW</c>. If there is insufficient room in the output
buffer then it returns <c>CoderResult#OVERFLOW</c>. If this happens
then this method must be invoked again, with an output buffer that has
more room, in order to complete the current encoding
operation.</para>
<para>If this encoder has already been flushed then invoking this method
has no effect.</para>
<para>This method invokes the <c>#implFlush implFlush</c> method to
perform the actual flushing operation.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#flush(java.nio.ByteBuffer)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.flush(java.nio.ByteBuffer)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalStateException">if this encoder isn't already flushed or at end of input.
</exception>
</Docs>
</Member>
<Member MemberName="ImplFlush">
<MemberSignature Language="C#" Value="protected virtual Java.Nio.Charset.CoderResult? ImplFlush (Java.Nio.ByteBuffer? out);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance class Java.Nio.Charset.CoderResult ImplFlush(class Java.Nio.ByteBuffer out) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.ImplFlush(Java.Nio.ByteBuffer)" />
<MemberSignature Language="F#" Value="abstract member ImplFlush : Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult
override this.ImplFlush : Java.Nio.ByteBuffer -> Java.Nio.Charset.CoderResult" Usage="charsetEncoder.ImplFlush out" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("implFlush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetImplFlush_Ljava_nio_ByteBuffer_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("implFlush", "(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;", "GetImplFlush_Ljava_nio_ByteBuffer_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Charset.CoderResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="out" Type="Java.Nio.ByteBuffer" />
</Parameters>
<Docs>
<param name="out">The output byte buffer</param>
<summary>Flushes this encoder.</summary>
<returns>A coder-result object, either <c>CoderResult#UNDERFLOW</c> or
<c>CoderResult#OVERFLOW</c></returns>
<remarks>
<para>Flushes this encoder.</para>
<para>The default implementation of this method does nothing, and always
returns <c>CoderResult#UNDERFLOW</c>. This method should be overridden
by encoders that may need to write final bytes to the output buffer
once the entire input sequence has been read.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#implFlush(java.nio.ByteBuffer)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.implFlush(java.nio.ByteBuffer)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ImplOnMalformedInput">
<MemberSignature Language="C#" Value="protected virtual void ImplOnMalformedInput (Java.Nio.Charset.CodingErrorAction? newAction);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void ImplOnMalformedInput(class Java.Nio.Charset.CodingErrorAction newAction) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.ImplOnMalformedInput(Java.Nio.Charset.CodingErrorAction)" />
<MemberSignature Language="F#" Value="abstract member ImplOnMalformedInput : Java.Nio.Charset.CodingErrorAction -> unit
override this.ImplOnMalformedInput : Java.Nio.Charset.CodingErrorAction -> unit" Usage="charsetEncoder.ImplOnMalformedInput newAction" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("implOnMalformedInput", "(Ljava/nio/charset/CodingErrorAction;)V", "GetImplOnMalformedInput_Ljava_nio_charset_CodingErrorAction_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("implOnMalformedInput", "(Ljava/nio/charset/CodingErrorAction;)V", "GetImplOnMalformedInput_Ljava_nio_charset_CodingErrorAction_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="newAction" Type="Java.Nio.Charset.CodingErrorAction" />
</Parameters>
<Docs>
<param name="newAction">The new action</param>
<summary>Reports a change to this encoder's malformed-input action.</summary>
<remarks>
<para>Reports a change to this encoder's malformed-input action.</para>
<para>The default implementation of this method does nothing. This method
should be overridden by encoders that require notification of changes to
the malformed-input action.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#implOnMalformedInput(java.nio.charset.CodingErrorAction)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.implOnMalformedInput(java.nio.charset.CodingErrorAction)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ImplOnUnmappableCharacter">
<MemberSignature Language="C#" Value="protected virtual void ImplOnUnmappableCharacter (Java.Nio.Charset.CodingErrorAction? newAction);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void ImplOnUnmappableCharacter(class Java.Nio.Charset.CodingErrorAction newAction) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.ImplOnUnmappableCharacter(Java.Nio.Charset.CodingErrorAction)" />
<MemberSignature Language="F#" Value="abstract member ImplOnUnmappableCharacter : Java.Nio.Charset.CodingErrorAction -> unit
override this.ImplOnUnmappableCharacter : Java.Nio.Charset.CodingErrorAction -> unit" Usage="charsetEncoder.ImplOnUnmappableCharacter newAction" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("implOnUnmappableCharacter", "(Ljava/nio/charset/CodingErrorAction;)V", "GetImplOnUnmappableCharacter_Ljava_nio_charset_CodingErrorAction_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("implOnUnmappableCharacter", "(Ljava/nio/charset/CodingErrorAction;)V", "GetImplOnUnmappableCharacter_Ljava_nio_charset_CodingErrorAction_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="newAction" Type="Java.Nio.Charset.CodingErrorAction" />
</Parameters>
<Docs>
<param name="newAction">The new action</param>
<summary>Reports a change to this encoder's unmappable-character action.</summary>
<remarks>
<para>Reports a change to this encoder's unmappable-character action.</para>
<para>The default implementation of this method does nothing. This method
should be overridden by encoders that require notification of changes to
the unmappable-character action.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#implOnUnmappableCharacter(java.nio.charset.CodingErrorAction)" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.implOnUnmappableCharacter(java.nio.charset.CodingErrorAction)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ImplReplaceWith">
<MemberSignature Language="C#" Value="protected virtual void ImplReplaceWith (byte[]? newReplacement);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void ImplReplaceWith(unsigned int8[] newReplacement) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.ImplReplaceWith(System.Byte[])" />
<MemberSignature Language="F#" Value="abstract member ImplReplaceWith : byte[] -> unit
override this.ImplReplaceWith : byte[] -> unit" Usage="charsetEncoder.ImplReplaceWith newReplacement" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("implReplaceWith", "([B)V", "GetImplReplaceWith_arrayBHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("implReplaceWith", "([B)V", "GetImplReplaceWith_arrayBHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="newReplacement" Type="System.Byte[]" />
</Parameters>
<Docs>
<param name="newReplacement">The replacement value</param>
<summary>Reports a change to this encoder's replacement value.</summary>
<remarks>
<para>Reports a change to this encoder's replacement value.</para>
<para>The default implementation of this method does nothing. This method
should be overridden by encoders that require notification of changes to
the replacement.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/nio/charset/CharsetEncoder#implReplaceWith(byte[])" title="Reference documentation">Java documentation for <code>java.nio.charset.CharsetEncoder.implReplaceWith(byte[])</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ImplReset">
<MemberSignature Language="C#" Value="protected virtual void ImplReset ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void ImplReset() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Nio.Charset.CharsetEncoder.ImplReset" />
<MemberSignature Language="F#" Value="abstract member ImplReset : unit -> unit
override this.ImplReset : unit -> unit" Usage="charsetEncoder.ImplReset " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("implReset", "()V", "GetImplResetHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("implReset", "()V", "GetImplResetHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />