public class DataContractSerializer extends XmlObjectSerializer
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.DataContractSerialization, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.DataContractSerialization
|
static java.lang.String |
className
Qualified class name: System.Runtime.Serialization.DataContractSerializer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DataContractSerializer() |
DataContractSerializer(NetType type) |
DataContractSerializer(NetType type,
DataContractSerializerSettings settings) |
DataContractSerializer(NetType type,
java.lang.String rootName,
java.lang.String rootNamespace) |
DataContractSerializer(NetType type,
XmlDictionaryString rootName,
XmlDictionaryString rootNamespace) |
DataContractSerializer(java.lang.Object instance)
Internal constructor.
|
ReadObject, ReadObject, WriteObject, WriteObjectpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DataContractSerializer()
throws java.lang.Throwable
java.lang.Throwablepublic DataContractSerializer(NetType type) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DataContractSerializer(NetType type, DataContractSerializerSettings settings) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
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
public DataContractSerializer(NetType type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic DataContractSerializer(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static DataContractSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DataContractSerializer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDataContractSerializer instancejava.lang.Throwable - in case of error during cast operationpublic DataContractResolver getDataContractResolver() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIgnoreExtensionDataObject()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class XmlObjectSerializerString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class XmlObjectSerializerString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class XmlObjectSerializerObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class XmlObjectSerializerString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class XmlObjectSerializerJCType representing the CLR Type of the instantiated Classpublic int getMaxItemsInObjectGraph()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getPreserveObjectReferences()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getSerializeReadOnlyTypes()
throws java.lang.Throwable
java.lang.Throwablepublic boolean IsStartObject(XmlDictionaryReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
IsStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
IsStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
public NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class XmlObjectSerializerpublic void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
WriteEndObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException
WriteEndObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic void WriteObject(XmlDictionaryWriter writer, NetObject graph, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, SerializationException
public void WriteObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, SerializationException
WriteObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
WriteObjectContent in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionOutOfMemoryExceptionpublic void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, SerializationException, OutOfMemoryException
WriteObjectContent in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionOutOfMemoryExceptionpublic void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, SerializationException
WriteStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSerializationExceptionpublic void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, IndexOutOfRangeException, FormatException, SerializationException
WriteStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSerializationException