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=8.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.String
assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Reflection.Metadatastatic java.lang.String
className
Qualified class name: System.Reflection.Metadata.BlobWriterstatic JCType
classType
The 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 void
Align(int alignment)
static BlobWriter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoBlobWriter
, a cast assert is made to check if types are compatible.void
Clear()
boolean
ContentEquals(BlobWriter other)
Blob
getBlob()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getLength()
int
getOffset()
int
getRemainingBytes()
void
PadTo(int offset)
void
setJCOInstance(JCObject instance)
void
setOffset(int Offset)
byte[]
ToArray()
byte[]
ToArray(int start, int byteCount)
void
WriteBoolean(boolean value)
void
WriteByte(byte value)
void
WriteBytes(byte[] buffer)
void
WriteBytes(byte[] buffer, int start, int byteCount)
void
WriteBytes(byte value, int byteCount)
void
WriteBytes(JCORefOut dupParam0)
void
WriteBytes(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
WriteBytes(Stream source, int byteCount)
void
WriteBytes(BlobBuilder source)
void
WriteCompressedInteger(int value)
void
WriteCompressedSignedInteger(int value)
void
WriteConstant(NetObject value)
void
WriteDateTime(DateTime value)
void
WriteDecimal(Decimal value)
void
WriteDouble(double value)
void
WriteGuid(Guid value)
void
WriteInt16(short value)
void
WriteInt16BE(short value)
void
WriteInt32(int value)
void
WriteInt32BE(int value)
void
WriteInt64(long value)
void
WriteReference(int reference, boolean isSmall)
void
WriteSByte(SByte value)
void
WriteSerializedString(java.lang.String str)
void
WriteSingle(Single value)
void
WriteUInt16(UInt16 value)
void
WriteUInt16BE(UInt16 value)
void
WriteUInt32(UInt32 value)
void
WriteUInt32BE(UInt32 value)
void
WriteUInt64(UInt64 value)
void
WriteUserString(java.lang.String value)
void
WriteUTF16(char[] value)
void
WriteUTF16(java.lang.String value)
void
WriteUTF16(JCORefOut dupParam0)
void
WriteUTF8(java.lang.String value, boolean allowUnpairedSurrogates)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Reflection.Metadata, Version=8.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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static BlobWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoBlobWriter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
BlobWriter
instance- 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.Throwable
ArgumentException
InvalidOperationException
BadImageFormatException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
WriteCompressedSignedInteger
public void WriteCompressedSignedInteger(int value) throws java.lang.Throwable, ArgumentException, InvalidOperationException, BadImageFormatException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
BadImageFormatException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
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.Throwable
ArgumentException
InvalidOperationException
BadImageFormatException
PlatformNotSupportedException
-
WriteDecimal
public void WriteDecimal(Decimal value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, BadImageFormatException, InvalidOperationException, 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, InvalidOperationException
-
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
-
-