public class UTF8Encoding extends Encoding
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Text.UTF8Encoding
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Text.UTF8Encoding
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
UTF8Encoding()
Initializes a new instance by invoking the .NET constructor.
|
UTF8Encoding(boolean encoderShouldEmitUTF8Identifier)
Initializes a new instance by invoking the .NET constructor.
|
UTF8Encoding(boolean encoderShouldEmitUTF8Identifier,
boolean throwOnInvalidBytes)
Initializes a new instance by invoking the .NET constructor.
|
UTF8Encoding(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static UTF8Encoding |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into UTF8Encoding, a cast assert is made to check if types are compatible. |
int |
GetByteCount(char[] chars,
int index,
int count)
Invokes the .NET member GetByteCount.
|
int |
GetByteCount(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member GetByteCount.
|
int |
GetByteCount(java.lang.String chars)
Invokes the .NET member GetByteCount.
|
int |
GetBytes(char[] chars,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
Invokes the .NET member GetBytes.
|
int |
GetBytes(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4)
Invokes the .NET member GetBytes.
|
int |
GetBytes(java.lang.String s,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
Invokes the .NET member GetBytes.
|
int |
GetBytes(java.lang.String dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4)
Invokes the .NET member GetBytes.
|
int |
GetCharCount(byte[] bytes,
int index,
int count)
Invokes the .NET member GetCharCount.
|
int |
GetCharCount(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member GetCharCount.
|
int |
GetChars(byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex)
Invokes the .NET member GetChars.
|
int |
GetChars(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4)
Invokes the .NET member GetChars.
|
Decoder |
GetDecoder()
Invokes the .NET member GetDecoder.
|
Encoder |
GetEncoder()
Invokes the .NET member GetEncoder.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
GetMaxByteCount(int charCount)
Invokes the .NET member GetMaxByteCount.
|
int |
GetMaxCharCount(int byteCount)
Invokes the .NET member GetMaxCharCount.
|
byte[] |
GetPreamble()
Invokes the .NET member GetPreamble.
|
java.lang.String |
GetString(byte[] bytes,
int index,
int count)
Invokes the .NET member GetString.
|
java.lang.String |
GetString(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member GetString.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
Clone, Convert, Convert, Convert, Convert, CreateTranscodingStream, getASCII, getBigEndianUnicode, getBodyName, GetByteCount, GetByteCount, GetByteCount, GetBytes, GetBytes, GetBytes, GetBytes, GetBytes, GetBytes, GetCharCount, GetCharCount, GetChars, GetChars, GetChars, GetChars, getCodePage, getDecoderFallback, getDefault, getEncoderFallback, GetEncoding, GetEncoding, GetEncoding, GetEncoding, getEncodingName, GetEncodings, getHeaderName, getIsBrowserDisplay, getIsBrowserSave, getIsMailNewsDisplay, getIsMailNewsSave, getIsReadOnly, getIsSingleByte, getLatin1, GetString, GetString, getUnicode, getUTF32, getUTF7, getUTF8, getWebName, getWindowsCodePage, IsAlwaysNormalized, IsAlwaysNormalized, RegisterProvider, setDecoderFallback, setEncoderFallback, setIsReadOnlypublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public UTF8Encoding()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic UTF8Encoding(boolean encoderShouldEmitUTF8Identifier)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException,
FormatException
encoderShouldEmitUTF8Identifier - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic UTF8Encoding(boolean encoderShouldEmitUTF8Identifier,
boolean throwOnInvalidBytes)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
encoderShouldEmitUTF8Identifier - the argument of type booleanthrowOnInvalidBytes - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic UTF8Encoding(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static UTF8Encoding cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into UTF8Encoding, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedUTF8Encoding instancejava.lang.Throwable - in case of error during cast operationpublic int GetByteCount(char[] chars,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetByteCount in class Encodingchars - the argument of type char[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetByteCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
GetByteCount in class EncodingdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetByteCount(java.lang.String chars)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ArgumentNullException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetByteCount in class Encodingchars - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetBytes(char[] chars,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetBytes in class Encodingchars - the argument of type char[]charIndex - the argument of type intcharCount - the argument of type intbytes - the argument of type byte[]byteIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
GetBytes in class EncodingdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutdupParam4 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetBytes(java.lang.String s,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetBytes in class Encodings - the argument of type java.lang.StringcharIndex - the argument of type intcharCount - the argument of type intbytes - the argument of type byte[]byteIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetBytes(java.lang.String dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetBytes in class EncodingdupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type intdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutdupParam4 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetCharCount(byte[] bytes,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetCharCount in class Encodingbytes - the argument of type byte[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetCharCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
GetCharCount in class EncodingdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetChars(byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetChars in class Encodingbytes - the argument of type byte[]byteIndex - the argument of type intbyteCount - the argument of type intchars - the argument of type char[]charIndex - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetChars(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
GetChars in class EncodingdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intdupParam3 - the argument of type JCORefOutdupParam4 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Decoder GetDecoder() throws java.lang.Throwable
GetDecoder in class Encodingjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Encoder GetEncoder() throws java.lang.Throwable
GetEncoder in class Encodingjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Encodingpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Encodingpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Encodingnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Encodingpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Encodingpublic int GetMaxByteCount(int charCount)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetMaxByteCount in class EncodingcharCount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetMaxCharCount(int byteCount)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetMaxCharCount in class EncodingbyteCount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic byte[] GetPreamble()
throws java.lang.Throwable
GetPreamble in class Encodingjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String GetString(byte[] bytes,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
GetString in class Encodingbytes - the argument of type byte[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic java.lang.String GetString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
GetString in class EncodingdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Encodinginstance - the new underlying object