Class JsonReaderWriterFactory
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.json.JsonReaderWriterFactory
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class JsonReaderWriterFactory extends NetObject
The base .NET class managing System.Runtime.Serialization.Json.JsonReaderWriterFactory, System.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Serialization.Json.JsonReaderWriterFactory
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Private.DataContractSerializationstatic java.lang.String
className
Qualified class name: System.Runtime.Serialization.Json.JsonReaderWriterFactorystatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description JsonReaderWriterFactory()
JsonReaderWriterFactory(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonReaderWriterFactory
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoJsonReaderWriterFactory
, a cast assert is made to check if types are compatible.static XmlDictionaryReader
CreateJsonReader(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose)
static XmlDictionaryReader
CreateJsonReader(byte[] buffer, int offset, int count, XmlDictionaryReaderQuotas quotas)
static XmlDictionaryReader
CreateJsonReader(byte[] buffer, XmlDictionaryReaderQuotas quotas)
static XmlDictionaryReader
CreateJsonReader(JCORefOut dupParam0, int dupParam1, int dupParam2, Encoding dupParam3, XmlDictionaryReaderQuotas dupParam4, OnXmlDictionaryReaderClose dupParam5)
static XmlDictionaryReader
CreateJsonReader(JCORefOut dupParam0, int dupParam1, int dupParam2, XmlDictionaryReaderQuotas dupParam3)
static XmlDictionaryReader
CreateJsonReader(JCORefOut dupParam0, XmlDictionaryReaderQuotas dupParam1)
static XmlDictionaryReader
CreateJsonReader(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose)
static XmlDictionaryReader
CreateJsonReader(Stream stream, XmlDictionaryReaderQuotas quotas)
static XmlDictionaryWriter
CreateJsonWriter(Stream stream)
static XmlDictionaryWriter
CreateJsonWriter(Stream stream, Encoding encoding)
static XmlDictionaryWriter
CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream)
static XmlDictionaryWriter
CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream, boolean indent)
static XmlDictionaryWriter
CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream, boolean indent, java.lang.String indentChars)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
setJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.DataContractSerialization- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Runtime.Serialization.Json.JsonReaderWriterFactory- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonReaderWriterFactory
public JsonReaderWriterFactory(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
JsonReaderWriterFactory
public JsonReaderWriterFactory() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 JsonReaderWriterFactory cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoJsonReaderWriterFactory
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
JsonReaderWriterFactory
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, NullReferenceException, XmlException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(JCORefOut dupParam0, int dupParam1, int dupParam2, Encoding dupParam3, XmlDictionaryReaderQuotas dupParam4, OnXmlDictionaryReaderClose dupParam5) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, NullReferenceException, XmlException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(byte[] buffer, int offset, int count, XmlDictionaryReaderQuotas quotas) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, XmlException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(JCORefOut dupParam0, int dupParam1, int dupParam2, XmlDictionaryReaderQuotas dupParam3) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, XmlException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(byte[] buffer, XmlDictionaryReaderQuotas quotas) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, XmlException, FormatException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(JCORefOut dupParam0, XmlDictionaryReaderQuotas dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, XmlException, FormatException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, XmlException, FormatException, ArrayTypeMismatchException, IOException
-
CreateJsonReader
public static XmlDictionaryReader CreateJsonReader(Stream stream, XmlDictionaryReaderQuotas quotas) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, XmlException, ArrayTypeMismatchException, IOException
-
CreateJsonWriter
public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream, boolean indent, java.lang.String indentChars) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, ObjectDisposedException, XmlException, FormatException, ArrayTypeMismatchException, IOException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NullReferenceException
IndexOutOfRangeException
ObjectDisposedException
XmlException
FormatException
ArrayTypeMismatchException
IOException
-
CreateJsonWriter
public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream, boolean indent) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, ObjectDisposedException, XmlException, ArrayTypeMismatchException, IOException
-
CreateJsonWriter
public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, boolean ownsStream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, ObjectDisposedException, XmlException, ArrayTypeMismatchException, IOException
-
CreateJsonWriter
public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, XmlException
-
CreateJsonWriter
public static XmlDictionaryWriter CreateJsonWriter(Stream stream) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, XmlException
-
-