Package system.runtime.serialization
Class DataContractSerializer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.runtime.serialization.XmlObjectSerializer
-
- system.runtime.serialization.DataContractSerializer
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class DataContractSerializer extends XmlObjectSerializer
The base .NET class managing System.Runtime.Serialization.DataContractSerializer, 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.DataContractSerializer
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.StringassemblyFullNameFully assembly qualified name: System.Private.DataContractSerialization, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Private.DataContractSerializationstatic java.lang.StringclassNameQualified class name: System.Runtime.Serialization.DataContractSerializerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DataContractSerializer()DataContractSerializer(java.lang.Object instance)Internal constructor.DataContractSerializer(NetType type)DataContractSerializer(NetType type, java.lang.String rootName, java.lang.String rootNamespace)DataContractSerializer(NetType type, DataContractSerializerSettings settings)DataContractSerializer(NetType type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace)
-
Method Summary
-
Methods inherited from class system.runtime.serialization.XmlObjectSerializer
ReadObject, ReadObject, WriteObject, WriteObject
-
-
-
-
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.DataContractSerializer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataContractSerializer
public DataContractSerializer(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
DataContractSerializer
public DataContractSerializer() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DataContractSerializer
public DataContractSerializer(NetType type, DataContractSerializerSettings settings) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
-
DataContractSerializer
public DataContractSerializer(NetType type, java.lang.String rootName, java.lang.String rootNamespace) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, FormatException, RankException, ArrayTypeMismatchException
-
DataContractSerializer
public DataContractSerializer(NetType type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
DataContractSerializer
public DataContractSerializer(NetType type) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classXmlObjectSerializer- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classXmlObjectSerializer- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classXmlObjectSerializer- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classXmlObjectSerializer- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classXmlObjectSerializer
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classXmlObjectSerializer- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DataContractSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDataContractSerializer, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DataContractSerializerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsStartObject
public boolean IsStartObject(XmlDictionaryReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
IsStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
IsStartObject
public boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
IsStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
ReadObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
ReadObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
ReadObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
WriteEndObject
public void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteEndObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
WriteEndObject
public void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteEndObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
WriteObject
public void WriteObject(XmlDictionaryWriter writer, NetObject graph, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
-
WriteObject
public void WriteObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
WriteObjectContent
public void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
- Overrides:
WriteObjectContentin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionOutOfMemoryException
-
WriteObjectContent
public void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
- Overrides:
WriteObjectContentin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionOutOfMemoryException
-
WriteStartObject
public void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
WriteStartObject
public void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException
-
getIgnoreExtensionDataObject
public boolean getIgnoreExtensionDataObject() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPreserveObjectReferences
public boolean getPreserveObjectReferences() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getSerializeReadOnlyTypes
public boolean getSerializeReadOnlyTypes() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMaxItemsInObjectGraph
public int getMaxItemsInObjectGraph() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDataContractResolver
public DataContractResolver getDataContractResolver() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-