public class BinaryWriter extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.BinaryWriter
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.BinaryWriter
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
BinaryWriter() |
BinaryWriter(java.lang.Object instance)
Internal constructor.
|
BinaryWriter(Stream output) |
BinaryWriter(Stream output,
Encoding encoding) |
BinaryWriter(Stream output,
Encoding encoding,
boolean leaveOpen) |
| Modifier and Type | Method and Description |
|---|---|
static BinaryWriter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into BinaryWriter, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
void |
Dispose() |
void |
Flush() |
Stream |
getBaseStream() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
long |
Seek(int offset,
SeekOrigin origin) |
void |
setJCOInstance(JCObject instance) |
void |
Write(boolean value) |
void |
Write(byte value) |
void |
Write(byte[] buffer) |
void |
Write(byte[] buffer,
int index,
int count) |
void |
Write(char ch) |
void |
Write(char[] chars) |
void |
Write(char[] chars,
int index,
int count) |
void |
Write(Decimal value) |
void |
Write(double value) |
void |
Write(int value) |
void |
Write(JCORefOut dupParam0) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
void |
Write(long value) |
void |
Write(SByte value) |
void |
Write(short value) |
void |
Write(Single value) |
void |
Write(java.lang.String value) |
void |
Write(UInt16 value) |
void |
Write(UInt32 value) |
void |
Write(UInt64 value) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public BinaryWriter()
throws java.lang.Throwable
java.lang.Throwablepublic BinaryWriter(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic BinaryWriter(Stream output) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionpublic BinaryWriter(Stream output, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic BinaryWriter(Stream output, Encoding encoding, boolean leaveOpen) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static BinaryWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into BinaryWriter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedBinaryWriter instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Flush()
throws java.lang.Throwable
java.lang.Throwablepublic Stream getBaseStream() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic long Seek(int offset,
SeekOrigin origin)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void Write(boolean value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(byte value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(byte[] buffer)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Write(byte[] buffer,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(char ch)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionpublic void Write(char[] chars)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Write(char[] chars,
int index,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(Decimal value) throws java.lang.Throwable
java.lang.Throwablepublic void Write(double value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(int value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic void Write(long value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(SByte value) throws java.lang.Throwable
java.lang.Throwablepublic void Write(short value)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(Single value) throws java.lang.Throwable
java.lang.Throwablepublic void Write(java.lang.String value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionpublic void Write(UInt16 value) throws java.lang.Throwable
java.lang.Throwablepublic void Write(UInt32 value) throws java.lang.Throwable
java.lang.Throwablepublic void Write(UInt64 value) throws java.lang.Throwable
java.lang.Throwable