Package system.text
Class Encoding
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.text.Encoding
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
ASCIIEncoding
,UnicodeEncoding
,UTF32Encoding
,UTF7Encoding
,UTF8Encoding
public class Encoding extends NetObject
The base .NET class managing System.Text.Encoding, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Encoding
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic String
assemblyShortName
Assembly name: System.Private.CoreLibstatic String
className
Qualified class name: System.Text.Encodingstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Encoding
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoEncoding
, 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 Stream
CreateTranscodingStream(Stream innerStream, Encoding innerStreamEncoding, Encoding outerStreamEncoding, boolean leaveOpen)
static Encoding
getASCII()
static Encoding
getBigEndianUnicode()
String
getBodyName()
int
GetByteCount(char[] chars)
int
GetByteCount(char[] chars, int index, int count)
int
GetByteCount(String s)
int
GetByteCount(String s, int index, int count)
int
GetByteCount(JCORefOut dupParam0)
int
GetByteCount(JCORefOut dupParam0, int dupParam1, int dupParam2)
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(String s)
byte[]
GetBytes(String s, int index, int count)
int
GetBytes(String s, int charIndex, int charCount, byte[] bytes, int byteIndex)
int
GetBytes(String dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4)
byte[]
GetBytes(JCORefOut dupParam0)
byte[]
GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
GetBytes(JCORefOut 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(String name)
static Encoding
GetEncoding(String name, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
String
getEncodingName()
static EncodingInfo[]
GetEncodings()
String
getHeaderName()
boolean
getIsBrowserDisplay()
boolean
getIsBrowserSave()
boolean
getIsMailNewsDisplay()
boolean
getIsMailNewsSave()
boolean
getIsReadOnly()
boolean
getIsSingleByte()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic Encoding
getLatin1()
int
GetMaxByteCount(int charCount)
int
GetMaxCharCount(int byteCount)
byte[]
GetPreamble()
String
GetString(byte[] bytes)
String
GetString(byte[] bytes, int index, int count)
String
GetString(JCORefOut dupParam0)
String
GetString(JCORefOut dupParam0, int dupParam1, int dupParam2)
static Encoding
getUnicode()
static Encoding
getUTF32()
static Encoding
getUTF7()
static Encoding
getUTF8()
String
getWebName()
int
getWindowsCodePage()
boolean
IsAlwaysNormalized()
boolean
IsAlwaysNormalized(NormalizationForm form)
static void
RegisterProvider(EncodingProvider provider)
void
setDecoderFallback(DecoderFallback DecoderFallback)
void
setEncoderFallback(EncoderFallback EncoderFallback)
void
setIsReadOnly(boolean IsReadOnly)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Text.Encoding- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Encoding cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoEncoding
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Encoding
instance- Throws:
Throwable
- in case of error during cast operation
-
IsAlwaysNormalized
public boolean IsAlwaysNormalized(NormalizationForm form) throws Throwable
- Throws:
Throwable
-
Convert
public static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, byte[] bytes, int index, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
Convert
public static byte[] Convert(Encoding dupParam0, Encoding dupParam1, JCORefOut dupParam2, int dupParam3, int dupParam4) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
Convert
public static byte[] Convert(Encoding srcEncoding, Encoding dstEncoding, byte[] bytes) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Convert
public static byte[] Convert(Encoding dupParam0, Encoding dupParam1, JCORefOut dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetBytes
public byte[] GetBytes(char[] chars, int index, int count) throws Throwable
- Throws:
Throwable
-
GetBytes
public byte[] GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable
- Throws:
Throwable
-
GetBytes
public byte[] GetBytes(char[] chars) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetBytes
public byte[] GetBytes(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetBytes
public byte[] GetBytes(String s, int index, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetBytes
public byte[] GetBytes(String s) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetChars
public char[] GetChars(byte[] bytes, int index, int count) throws Throwable
- Throws:
Throwable
-
GetChars
public char[] GetChars(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable
- Throws:
Throwable
-
GetChars
public char[] GetChars(byte[] bytes) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetChars
public char[] GetChars(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetByteCount
public int GetByteCount(char[] chars, int index, int count) throws Throwable
- Throws:
Throwable
-
GetByteCount
public int GetByteCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable
- Throws:
Throwable
-
GetByteCount
public int GetByteCount(char[] chars) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetByteCount
public int GetByteCount(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetByteCount
public int GetByteCount(String s, int index, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetByteCount
public int GetByteCount(String s) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
GetBytes
public int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex) throws Throwable
- Throws:
Throwable
-
GetBytes
public int GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws Throwable
- Throws:
Throwable
-
GetBytes
public int GetBytes(String s, int charIndex, int charCount, byte[] bytes, int byteIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
GetBytes
public int GetBytes(String dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
GetCharCount
public int GetCharCount(byte[] bytes, int index, int count) throws Throwable
- Throws:
Throwable
-
GetCharCount
public int GetCharCount(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable
- Throws:
Throwable
-
GetCharCount
public int GetCharCount(byte[] bytes) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetCharCount
public int GetCharCount(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetChars
public int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex) throws Throwable
- Throws:
Throwable
-
GetChars
public int GetChars(JCORefOut dupParam0, int dupParam1, int dupParam2, JCORefOut dupParam3, int dupParam4) throws Throwable
- Throws:
Throwable
-
CreateTranscodingStream
public static Stream CreateTranscodingStream(Stream innerStream, Encoding innerStreamEncoding, Encoding outerStreamEncoding, boolean leaveOpen) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Clone
public NetObject Clone() throws Throwable, PlatformNotSupportedException
-
GetString
public String GetString(byte[] bytes, int index, int count) throws Throwable
- Throws:
Throwable
-
GetString
public String GetString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable
- Throws:
Throwable
-
GetString
public String GetString(byte[] bytes) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetString
public String GetString(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetEncoding
public static Encoding GetEncoding(int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback) throws Throwable, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException
-
GetEncoding
public static Encoding GetEncoding(int codepage) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, FormatException, ArgumentOutOfRangeException, NotSupportedException
-
GetEncoding
public static Encoding GetEncoding(String name, EncoderFallback encoderFallback, DecoderFallback decoderFallback) throws Throwable, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException, FormatException
-
GetEncoding
public static Encoding GetEncoding(String name) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, FormatException
-
GetEncodings
public static EncodingInfo[] GetEncodings() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
RegisterProvider
public static void RegisterProvider(EncodingProvider provider) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
getIsBrowserDisplay
public boolean getIsBrowserDisplay() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getIsBrowserSave
public boolean getIsBrowserSave() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getIsMailNewsDisplay
public boolean getIsMailNewsDisplay() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getIsMailNewsSave
public boolean getIsMailNewsSave() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getWindowsCodePage
public int getWindowsCodePage() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getBodyName
public String getBodyName() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getEncodingName
public String getEncodingName() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getHeaderName
public String getHeaderName() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getWebName
public String getWebName() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
getDecoderFallback
public DecoderFallback getDecoderFallback() throws Throwable
- Throws:
Throwable
-
setDecoderFallback
public void setDecoderFallback(DecoderFallback DecoderFallback) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
getEncoderFallback
public EncoderFallback getEncoderFallback() throws Throwable
- Throws:
Throwable
-
setEncoderFallback
public void setEncoderFallback(EncoderFallback EncoderFallback) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
-
-