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.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Runtime.Serialization
|
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, ArgumentException, ArgumentNullException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionpublic DataContractSerializer(NetType type, DataContractSerializerSettings settings) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException
public DataContractSerializer(NetType type, java.lang.String rootName, java.lang.String rootNamespace) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException
public DataContractSerializer(NetType type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionpublic 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 IDataContractSurrogate getDataContractSurrogate() 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, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
IsStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionpublic boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
IsStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionpublic NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
ReadObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class XmlObjectSerializerpublic void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
WriteEndObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionpublic void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
WriteEndObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionpublic void WriteObject(XmlDictionaryWriter writer, NetObject graph, DataContractResolver dataContractResolver) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic void WriteObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
WriteObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
WriteObjectContent in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
WriteObjectContent in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionpublic void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
WriteStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionpublic void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException
WriteStartObject in class XmlObjectSerializerjava.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedException