Package system.reflection.metadata
Class BlobWriter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.reflection.metadata.BlobWriter
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class BlobWriter extends ValueType
The base .NET class managing System.Reflection.Metadata.BlobWriter, System.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.BlobWriter
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.Reflection.Metadata, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Reflection.Metadatastatic java.lang.StringclassNameQualified class name: System.Reflection.Metadata.BlobWriterstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BlobWriter()BlobWriter(byte[] buffer)BlobWriter(byte[] buffer, int start, int count)BlobWriter(int size)BlobWriter(java.lang.Object instance)Internal constructor.BlobWriter(Blob blob)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAlign(int alignment)static BlobWritercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoBlobWriter, a cast assert is made to check if types are compatible.voidClear()booleanContentEquals(BlobWriter other)BlobgetBlob()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 TypeintgetLength()intgetOffset()intgetRemainingBytes()voidPadTo(int offset)voidsetJCOInstance(JCObject instance)voidsetOffset(int Offset)byte[]ToArray()byte[]ToArray(int start, int byteCount)voidWriteBoolean(boolean value)voidWriteByte(byte value)voidWriteBytes(byte[] buffer)voidWriteBytes(byte[] buffer, int start, int byteCount)voidWriteBytes(byte value, int byteCount)voidWriteBytes(JCORefOut dupParam0)voidWriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2)intWriteBytes(Stream source, int byteCount)voidWriteBytes(BlobBuilder source)voidWriteCompressedInteger(int value)voidWriteCompressedSignedInteger(int value)voidWriteConstant(NetObject value)voidWriteDateTime(DateTime value)voidWriteDecimal(Decimal value)voidWriteDouble(double value)voidWriteGuid(Guid value)voidWriteInt16(short value)voidWriteInt16BE(short value)voidWriteInt32(int value)voidWriteInt32BE(int value)voidWriteInt64(long value)voidWriteReference(int reference, boolean isSmall)voidWriteSByte(SByte value)voidWriteSerializedString(java.lang.String str)voidWriteSingle(Single value)voidWriteUInt16(UInt16 value)voidWriteUInt16BE(UInt16 value)voidWriteUInt32(UInt32 value)voidWriteUInt32BE(UInt32 value)voidWriteUInt64(UInt64 value)voidWriteUserString(java.lang.String value)voidWriteUTF16(char[] value)voidWriteUTF16(java.lang.String value)voidWriteUTF16(JCORefOut dupParam0)voidWriteUTF8(java.lang.String value, boolean allowUnpairedSurrogates)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, 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.Reflection.Metadata- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.Metadata.BlobWriter- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlobWriter
public BlobWriter(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
BlobWriter
public BlobWriter() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BlobWriter
public BlobWriter(byte[] buffer, int start, int count) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BlobWriter
public BlobWriter(byte[] buffer) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BlobWriter
public BlobWriter(int size) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BlobWriter
public BlobWriter(Blob blob) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classValueType- 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 classValueType- 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 classValueType- 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 classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static BlobWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoBlobWriter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
BlobWriterinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
ContentEquals
public boolean ContentEquals(BlobWriter other) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException
-
ToArray
public byte[] ToArray() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException
-
ToArray
public byte[] ToArray(int start, int byteCount) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
WriteBytes
public int WriteBytes(Stream source, int byteCount) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
Align
public void Align(int alignment) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
Clear
public void Clear() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
PadTo
public void PadTo(int offset) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, BadImageFormatException
-
WriteBoolean
public void WriteBoolean(boolean value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteByte
public void WriteByte(byte value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte value, int byteCount) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte[] buffer, int start, int byteCount) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteBytes
public void WriteBytes(byte[] buffer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteBytes
public void WriteBytes(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteBytes
public void WriteBytes(BlobBuilder source) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteCompressedInteger
public void WriteCompressedInteger(int value) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionBadImageFormatExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
WriteCompressedSignedInteger
public void WriteCompressedSignedInteger(int value) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionBadImageFormatExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
WriteConstant
public void WriteConstant(NetObject value) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, FormatException
-
WriteDateTime
public void WriteDateTime(DateTime value) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionBadImageFormatExceptionPlatformNotSupportedException
-
WriteDecimal
public void WriteDecimal(Decimal value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException, IndexOutOfRangeException
-
WriteDouble
public void WriteDouble(double value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException, NotSupportedException
-
WriteGuid
public void WriteGuid(Guid value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException, ArrayTypeMismatchException
-
WriteInt16
public void WriteInt16(short value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt16BE
public void WriteInt16BE(short value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt32
public void WriteInt32(int value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt32BE
public void WriteInt32BE(int value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteInt64
public void WriteInt64(long value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteReference
public void WriteReference(int reference, boolean isSmall) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteSByte
public void WriteSByte(SByte value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException
-
WriteSerializedString
public void WriteSerializedString(java.lang.String str) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, BadImageFormatException, ArgumentOutOfRangeException
-
WriteSingle
public void WriteSingle(Single value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException, NotSupportedException
-
WriteUInt16
public void WriteUInt16(UInt16 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteUInt16BE
public void WriteUInt16BE(UInt16 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteUInt32
public void WriteUInt32(UInt32 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteUInt32BE
public void WriteUInt32BE(UInt32 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteUInt64
public void WriteUInt64(UInt64 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException
-
WriteUserString
public void WriteUserString(java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(char[] value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteUTF16
public void WriteUTF16(java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
WriteUTF8
public void WriteUTF8(java.lang.String value, boolean allowUnpairedSurrogates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, BadImageFormatException
-
getLength
public int getLength() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getOffset
public int getOffset() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setOffset
public void setOffset(int Offset) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getRemainingBytes
public int getRemainingBytes() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getBlob
public Blob getBlob() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-