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.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.StringassemblyFullNameFully assembly qualified name: System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Runtime.Serializationstatic java.lang.StringclassNameQualified class name: System.Runtime.Serialization.Json.DataContractJsonSerializerstatic JCTypeclassTypeThe 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.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Runtime.Serialization- 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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
DataContractJsonSerializer
public DataContractJsonSerializer() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotSupportedException, InvalidOperationException, InvalidDataContractException, NotImplementedException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, DataContractJsonSerializerSettings settings) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, OverflowException, OutOfMemoryException, NotSupportedException, InvalidDataContractException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionOverflowExceptionOutOfMemoryExceptionNotSupportedExceptionInvalidDataContractExceptionNotImplementedException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, java.lang.String rootName) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotSupportedException
-
DataContractJsonSerializer
public DataContractJsonSerializer(NetType type, XmlDictionaryString rootName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, OutOfMemoryException, NotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionOutOfMemoryExceptionNotSupportedExceptionArgumentOutOfRangeException
-
-
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 DataContractJsonSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDataContractJsonSerializer, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DataContractJsonSerializerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsStartObject
public boolean IsStartObject(XmlDictionaryReader reader) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
IsStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
IsStartObject
public boolean IsStartObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
IsStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
ReadObject
public NetObject ReadObject(Stream stream) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, SecurityException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
- Overrides:
ReadObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
ReadObject
public NetObject ReadObject(XmlDictionaryReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
ReadObject
public NetObject ReadObject(XmlReader reader) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
ReadObject
public NetObject ReadObject(XmlReader reader, boolean verifyObjectName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
WriteEndObject
public void WriteEndObject(XmlDictionaryWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
WriteEndObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
WriteEndObject
public void WriteEndObject(XmlWriter writer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
WriteEndObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
WriteObject
public void WriteObject(Stream stream, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, SecurityException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
- Overrides:
WriteObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionMulticastNotSupportedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionConfigurationErrorsExceptionArgumentOutOfRangeExceptionOverflowExceptionSecurityExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundException
-
WriteObject
public void WriteObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
WriteObject
public void WriteObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, NotImplementedException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, KeyNotFoundException
-
WriteObjectContent
public void WriteObjectContent(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, KeyNotFoundException
- Overrides:
WriteObjectContentin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMissingManifestResourceExceptionOutOfMemoryExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionKeyNotFoundException
-
WriteObjectContent
public void WriteObjectContent(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, OutOfMemoryException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, KeyNotFoundException
- Overrides:
WriteObjectContentin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMissingManifestResourceExceptionOutOfMemoryExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionKeyNotFoundException
-
WriteStartObject
public void WriteStartObject(XmlDictionaryWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
WriteStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
WriteStartObject
public void WriteStartObject(XmlWriter writer, NetObject graph) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, OutOfMemoryException, NotSupportedException
- Overrides:
WriteStartObjectin classXmlObjectSerializer- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedException
-
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
-
getDataContractSurrogate
public IDataContractSurrogate getDataContractSurrogate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-