public class Encoding extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Encoding
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Text.Encoding
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Encoding() |
Encoding(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Encoding |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Encoding, a cast assert is made to check if types are compatible. |
NetObject |
Clone() |
static byte[] |
Convert(Encoding srcEncoding,
Encoding dstEncoding,
byte[] bytes) |
static byte[] |
Convert(Encoding srcEncoding,
Encoding dstEncoding,
byte[] bytes,
int index,
int count) |
static byte[] |
Convert(Encoding dupParam0,
Encoding dupParam1,
JCORefOut dupParam2) |
static byte[] |
Convert(Encoding dupParam0,
Encoding dupParam1,
JCORefOut dupParam2,
int dupParam3,
int dupParam4) |
static Encoding |
getASCII() |
static Encoding |
getBigEndianUnicode() |
java.lang.String |
getBodyName() |
int |
GetByteCount(char[] chars) |
int |
GetByteCount(char[] chars,
int index,
int count) |
int |
GetByteCount(JCORefOut dupParam0) |
int |
GetByteCount(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
int |
GetByteCount(java.lang.String s) |
byte[] |
GetBytes(char[] chars) |
byte[] |
GetBytes(char[] chars,
int index,
int count) |
int |
GetBytes(char[] chars,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex) |
byte[] |
GetBytes(JCORefOut dupParam0) |
byte[] |
GetBytes(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
int |
GetBytes(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4) |
byte[] |
GetBytes(java.lang.String s) |
int |
GetBytes(java.lang.String s,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex) |
int |
GetBytes(java.lang.String dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4) |
int |
GetCharCount(byte[] bytes) |
int |
GetCharCount(byte[] bytes,
int index,
int count) |
int |
GetCharCount(JCORefOut dupParam0) |
int |
GetCharCount(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
char[] |
GetChars(byte[] bytes) |
char[] |
GetChars(byte[] bytes,
int index,
int count) |
int |
GetChars(byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex) |
char[] |
GetChars(JCORefOut dupParam0) |
char[] |
GetChars(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
int |
GetChars(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4) |
int |
getCodePage() |
Decoder |
GetDecoder() |
DecoderFallback |
getDecoderFallback() |
static Encoding |
getDefault() |
Encoder |
GetEncoder() |
EncoderFallback |
getEncoderFallback() |
static Encoding |
GetEncoding(int codepage) |
static Encoding |
GetEncoding(int codepage,
EncoderFallback encoderFallback,
DecoderFallback decoderFallback) |
static Encoding |
GetEncoding(java.lang.String name) |
static Encoding |
GetEncoding(java.lang.String name,
EncoderFallback encoderFallback,
DecoderFallback decoderFallback) |
java.lang.String |
getEncodingName() |
static EncodingInfo[] |
GetEncodings() |
java.lang.String |
getHeaderName() |
boolean |
getIsBrowserDisplay() |
boolean |
getIsBrowserSave() |
boolean |
getIsMailNewsDisplay() |
boolean |
getIsMailNewsSave() |
boolean |
getIsReadOnly() |
boolean |
getIsSingleByte() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
int |
GetMaxByteCount(int charCount) |
int |
GetMaxCharCount(int byteCount) |
byte[] |
GetPreamble() |
java.lang.String |
GetString(byte[] bytes) |
java.lang.String |
GetString(byte[] bytes,
int index,
int count) |
java.lang.String |
GetString(JCORefOut dupParam0) |
java.lang.String |
GetString(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
static Encoding |
getUnicode() |
static Encoding |
getUTF32() |
static Encoding |
getUTF7() |
static Encoding |
getUTF8() |
java.lang.String |
getWebName() |
int |
getWindowsCodePage() |
boolean |
IsAlwaysNormalized() |
boolean |
IsAlwaysNormalized(NormalizationForm form) |
static void |
RegisterProvider(EncodingProvider provider) |
void |
setDecoderFallback(DecoderFallback DecoderFallback) |
void |
setEncoderFallback(EncoderFallback EncoderFallback) |
void |
setJCOInstance(JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Encoding()
throws java.lang.Throwable
java.lang.Throwablepublic Encoding(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Encoding cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Encoding, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEncoding instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable
java.lang.Throwablepublic static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, byte[] bytes) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, byte[] bytes, int index, int count) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static byte[] Convert(Encoding dupParam0, Encoding dupParam1, JCORefOut dupParam2) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static byte[] Convert(Encoding dupParam0, Encoding dupParam1, JCORefOut dupParam2, int dupParam3, int dupParam4) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static Encoding getASCII() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Encoding getBigEndianUnicode() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic java.lang.String getBodyName()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public int GetByteCount(char[] chars)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetByteCount(char[] chars,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic int GetByteCount(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetByteCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic int GetByteCount(java.lang.String s)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic byte[] GetBytes(char[] chars)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic byte[] GetBytes(char[] chars,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic int GetBytes(char[] chars,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
throws java.lang.Throwable
java.lang.Throwablepublic byte[] GetBytes(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic byte[] GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic int GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws java.lang.Throwable
java.lang.Throwablepublic byte[] GetBytes(java.lang.String s)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetBytes(java.lang.String s,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetBytes(java.lang.String dupParam0,
int dupParam1,
int dupParam2,
JCORefOut dupParam3,
int dupParam4)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetCharCount(byte[] bytes)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetCharCount(byte[] bytes,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic int GetCharCount(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int GetCharCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic char[] GetChars(byte[] bytes)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic char[] GetChars(byte[] bytes,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic int GetChars(byte[] bytes,
int byteIndex,
int byteCount,
char[] chars,
int charIndex)
throws java.lang.Throwable
java.lang.Throwablepublic char[] GetChars(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic char[] GetChars(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic int GetChars(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws java.lang.Throwable
java.lang.Throwablepublic int getCodePage()
throws java.lang.Throwable
java.lang.Throwablepublic Decoder GetDecoder() throws java.lang.Throwable
java.lang.Throwablepublic DecoderFallback getDecoderFallback() throws java.lang.Throwable
java.lang.Throwablepublic static Encoding getDefault() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, ArgumentException, InvalidOperationException
public Encoder GetEncoder() throws java.lang.Throwable
java.lang.Throwablepublic EncoderFallback getEncoderFallback() throws java.lang.Throwable
java.lang.Throwablepublic static Encoding GetEncoding(int codepage) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
public static Encoding GetEncoding(int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, ObjectDisposedException, AbandonedMutexException, NotSupportedException
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionObjectDisposedExceptionAbandonedMutexExceptionNotSupportedExceptionpublic static Encoding GetEncoding(java.lang.String name) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNotSupportedExceptionpublic static Encoding GetEncoding(java.lang.String name, EncoderFallback encoderFallback, DecoderFallback decoderFallback) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NotSupportedException
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionNotSupportedExceptionpublic java.lang.String getEncodingName()
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
TypeInitializationException,
IndexOutOfRangeException
public static EncodingInfo[] GetEncodings() throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException
public java.lang.String getHeaderName()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean getIsBrowserDisplay()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean getIsBrowserSave()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean getIsMailNewsDisplay()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean getIsMailNewsSave()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsSingleByte()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic int GetMaxByteCount(int charCount)
throws java.lang.Throwable
java.lang.Throwablepublic int GetMaxCharCount(int byteCount)
throws java.lang.Throwable
java.lang.Throwablepublic byte[] GetPreamble()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String GetString(byte[] bytes)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic java.lang.String GetString(byte[] bytes,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String GetString(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic java.lang.String GetString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic static Encoding getUnicode() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Encoding getUTF32() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Encoding getUTF7() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Encoding getUTF8() throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic java.lang.String getWebName()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public int getWindowsCodePage()
throws java.lang.Throwable,
ArgumentNullException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
NotSupportedException
public boolean IsAlwaysNormalized()
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsAlwaysNormalized(NormalizationForm form) throws java.lang.Throwable
java.lang.Throwablepublic static void RegisterProvider(EncodingProvider provider) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic void setDecoderFallback(DecoderFallback DecoderFallback) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionpublic void setEncoderFallback(EncoderFallback EncoderFallback) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject