Class DataContractJsonSerializer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.XmlObjectSerializer
-
- system.runtime.serialization.json.DataContractJsonSerializer
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class DataContractJsonSerializer extends XmlObjectSerializer
The base .NET class managing System.Runtime.Serialization.Json.DataContractJsonSerializer, 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.DataContractJsonSerializer
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.DataContractJsonSerializerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DataContractJsonSerializer()
DataContractJsonSerializer(java.lang.Object instance)
Internal constructor.DataContractJsonSerializer(NetType type)
DataContractJsonSerializer(NetType type, java.lang.String rootName)
DataContractJsonSerializer(NetType type, DataContractJsonSerializerSettings settings)
DataContractJsonSerializer(NetType type, XmlDictionaryString rootName)
-
Method Summary
-
-
-
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.DataContractJsonSerializer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataContractJsonSerializer
public DataContractJsonSerializer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
DataContractJsonSerializer
public DataContractJsonSerializer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, DataContractJsonSerializerSettings settings) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, RankException, ArrayTypeMismatchException, InvalidCastException, InvalidDataContractException, NullReferenceException, NotImplementedException, OutOfMemoryException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentNullException
InvalidOperationException
RankException
ArrayTypeMismatchException
InvalidCastException
InvalidDataContractException
NullReferenceException
NotImplementedException
OutOfMemoryException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, java.lang.String rootName) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, FormatException, RankException, ArrayTypeMismatchException, NotSupportedException, InvalidDataContractException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, XmlDictionaryString rootName) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidDataContractException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, InvalidOperationException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type) throws java.lang.Throwable, ArgumentNullException, NotSupportedException, InvalidDataContractException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, InvalidOperationException
-
-
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 classXmlObjectSerializer
- 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 classXmlObjectSerializer
- 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 classXmlObjectSerializer
- 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 classXmlObjectSerializer
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXmlObjectSerializer
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXmlObjectSerializer
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DataContractJsonSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDataContractJsonSerializer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DataContractJsonSerializer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsStartObject
public boolean IsStartObject(XmlDictionaryReader reader) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
IsStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
IsStartObject
public boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
IsStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
ReadObject
public NetObject ReadObject(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, XmlException, IOException, OutOfMemoryException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
XmlException
IOException
OutOfMemoryException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
GetSerializationSurrogateProvider
public ISerializationSurrogateProvider GetSerializationSurrogateProvider() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetSerializationSurrogateProvider
public void SetSerializationSurrogateProvider(ISerializationSurrogateProvider provider) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteEndObject
public void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
WriteEndObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
WriteEndObject
public void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
WriteEndObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
WriteObject
public void WriteObject(Stream stream, NetObject graph) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, XmlException, OutOfMemoryException, SerializationException
- Overrides:
WriteObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
XmlException
OutOfMemoryException
SerializationException
-
WriteObject
public void WriteObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
WriteObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
WriteObject
public void WriteObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, OutOfMemoryException, SerializationException
- Overrides:
WriteObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
OutOfMemoryException
SerializationException
-
WriteObjectContent
public void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, NotSupportedException, OutOfMemoryException
- Overrides:
WriteObjectContent
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
SerializationException
NotSupportedException
OutOfMemoryException
-
WriteObjectContent
public void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, NotSupportedException, OutOfMemoryException
- Overrides:
WriteObjectContent
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
SerializationException
NotSupportedException
OutOfMemoryException
-
WriteStartObject
public void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
WriteStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
WriteStartObject
public void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, SerializationException
- Overrides:
WriteStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
SerializationException
-
getIgnoreExtensionDataObject
public boolean getIgnoreExtensionDataObject() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSerializeReadOnlyTypes
public boolean getSerializeReadOnlyTypes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUseSimpleDictionaryFormat
public boolean getUseSimpleDictionaryFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMaxItemsInObjectGraph
public int getMaxItemsInObjectGraph() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDateTimeFormat
public DateTimeFormat getDateTimeFormat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEmitTypeInformation
public EmitTypeInformation getEmitTypeInformation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-