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.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.DataContractSerializerstatic JCType
classType
The 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.Throwable
Internal 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.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
DataContractSerializer
public DataContractSerializer(NetType type) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
-
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 DataContractSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDataContractSerializer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DataContractSerializer
instance- 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:
IsStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
IsStartObject
public boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
IsStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
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:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
ReadObject
public NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
ReadObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
WriteEndObject
public void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteEndObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
WriteEndObject
public void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteEndObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
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:
WriteObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
WriteObjectContent
public void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
- Overrides:
WriteObjectContent
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
OutOfMemoryException
-
WriteObjectContent
public void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
- Overrides:
WriteObjectContent
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
OutOfMemoryException
-
WriteStartObject
public void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
WriteStartObject
public void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
- Overrides:
WriteStartObject
in classXmlObjectSerializer
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
OutOfMemoryException
PlatformNotSupportedException
IndexOutOfRangeException
FormatException
SerializationException
-
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
-
-