Class BinaryFormatter
- java.lang.Object
- 
- org.mases.jcobridge.netreflection.NetObject
- 
- system.runtime.serialization.formatters.binary.BinaryFormatter
 
 
- 
- All Implemented Interfaces:
- IJCOBridgeReflected
 
 public class BinaryFormatter extends NetObject The base .NET class managing System.Runtime.Serialization.Formatters.Binary.BinaryFormatter, System.Runtime.Serialization.Formatters, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Serialization.Formatters.Binary.BinaryFormatter Powered by JCOBridge: more info at https://www.jcobridge.com - Author:
- MASES s.r.l https://masesgroup.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Runtime.Serialization.Formatters, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Runtime.Serialization.Formattersstatic java.lang.StringclassNameQualified class name: System.Runtime.Serialization.Formatters.Binary.BinaryFormatterstatic JCTypeclassTypeThe type managed from JCOBridge.
 - 
Constructor SummaryConstructors Constructor Description BinaryFormatter()BinaryFormatter(java.lang.Object instance)Internal constructor.BinaryFormatter(ISurrogateSelector selector, StreamingContext context)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BinaryFormattercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoBinaryFormatter, a cast assert is made to check if types are compatible.NetObjectDeserialize(Stream serializationStream)FormatterAssemblyStylegetAssemblyFormat()SerializationBindergetBinder()StreamingContextgetContext()TypeFilterLevelgetFilterLevel()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeISurrogateSelectorgetSurrogateSelector()FormatterTypeStylegetTypeFormat()voidSerialize(Stream serializationStream, NetObject graph)voidsetAssemblyFormat(FormatterAssemblyStyle AssemblyFormat)voidsetBinder(SerializationBinder Binder)voidsetContext(StreamingContext Context)voidsetFilterLevel(TypeFilterLevel FilterLevel)voidsetJCOInstance(JCObject instance)voidsetSurrogateSelector(ISurrogateSelector SurrogateSelector)voidsetTypeFormat(FormatterTypeStyle TypeFormat)
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic static final java.lang.String assemblyFullName Fully assembly qualified name: System.Runtime.Serialization.Formatters, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: System.Runtime.Serialization.Formatters- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
BinaryFormatterpublic BinaryFormatter(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
- java.lang.Throwable
 
 - 
BinaryFormatterpublic BinaryFormatter() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
BinaryFormatterpublic BinaryFormatter(ISurrogateSelector selector, StreamingContext context) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- NetObject
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- NetObject
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- NetObject
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- NetObject
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic static BinaryFormatter cast(IJCOBridgeReflected from) throws java.lang.Throwable Try to cast theIJCOBridgeReflectedinstance intoBinaryFormatter, a cast assert is made to check if types are compatible.- Parameters:
- from-- IJCOBridgeReflectedinstance to be casted
- Returns:
- BinaryFormatterinstance
- Throws:
- java.lang.Throwable- in case of error during cast operation
 
 - 
Deserializepublic NetObject Deserialize(Stream serializationStream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, SerializationException, FormatException, OutOfMemoryException, EventSourceException, ObjectDisposedException, IOException, EndOfStreamException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, AmbiguousMatchException, MissingMemberException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
- InvalidOperationException
- PlatformNotSupportedException
- ArgumentOutOfRangeException
- NotSupportedException
- SerializationException
- FormatException
- OutOfMemoryException
- EventSourceException
- ObjectDisposedException
- IOException
- EndOfStreamException
- IndexOutOfRangeException
- RankException
- ArrayTypeMismatchException
- InvalidCastException
- AmbiguousMatchException
- MissingMemberException
 
 - 
Serializepublic void Serialize(Stream serializationStream, NetObject graph) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, FormatException, OutOfMemoryException, EventSourceException, SerializationException, MulticastNotSupportedException, IndexOutOfRangeException - Throws:
- java.lang.Throwable
- ArgumentNullException
- ArgumentException
- InvalidOperationException
- PlatformNotSupportedException
- ArgumentOutOfRangeException
- NotSupportedException
- FormatException
- OutOfMemoryException
- EventSourceException
- SerializationException
- MulticastNotSupportedException
- IndexOutOfRangeException
 
 - 
getAssemblyFormatpublic FormatterAssemblyStyle getAssemblyFormat() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setAssemblyFormatpublic void setAssemblyFormat(FormatterAssemblyStyle AssemblyFormat) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getTypeFormatpublic FormatterTypeStyle getTypeFormat() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setTypeFormatpublic void setTypeFormat(FormatterTypeStyle TypeFormat) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getFilterLevelpublic TypeFilterLevel getFilterLevel() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setFilterLevelpublic void setFilterLevel(TypeFilterLevel FilterLevel) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getSurrogateSelectorpublic ISurrogateSelector getSurrogateSelector() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setSurrogateSelectorpublic void setSurrogateSelector(ISurrogateSelector SurrogateSelector) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getBinderpublic SerializationBinder getBinder() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setBinderpublic void setBinder(SerializationBinder Binder) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getContextpublic StreamingContext getContext() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setContextpublic void setContext(StreamingContext Context) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 
- 
 
-