public class MemoryStream extends Stream
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.MemoryStream
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.MemoryStream
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MemoryStream() |
MemoryStream(byte[] buffer) |
MemoryStream(byte[] buffer,
boolean writable) |
MemoryStream(byte[] buffer,
int index,
int count) |
MemoryStream(byte[] buffer,
int index,
int count,
boolean writable) |
MemoryStream(byte[] buffer,
int index,
int count,
boolean writable,
boolean publiclyVisible) |
MemoryStream(int capacity) |
MemoryStream(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryStream |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into MemoryStream, a cast assert is made to check if types are compatible. |
Task |
CopyToAsync(Stream destination,
int bufferSize,
CancellationToken cancellationToken) |
void |
Flush() |
Task |
FlushAsync(CancellationToken cancellationToken) |
byte[] |
GetBuffer() |
int |
getCapacity() |
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
|
int |
Read(JCORefOut buffer,
int offset,
int count) |
int |
ReadByte() |
long |
Seek(long offset,
SeekOrigin loc) |
void |
setCapacity(int Capacity) |
void |
setJCOInstance(JCObject instance) |
void |
SetLength(long value) |
byte[] |
ToArray() |
void |
Write(byte[] buffer,
int offset,
int count) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
CancellationToken dupParam3) |
void |
WriteByte(byte value) |
void |
WriteTo(Stream stream) |
BeginRead, BeginRead, BeginWrite, BeginWrite, close, Close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, Dispose, EndRead, EndWrite, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsyncCreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MemoryStream()
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic MemoryStream(byte[] buffer)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic MemoryStream(byte[] buffer,
boolean writable)
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic MemoryStream(byte[] buffer,
int index,
int count)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic MemoryStream(byte[] buffer,
int index,
int count,
boolean writable)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic MemoryStream(byte[] buffer,
int index,
int count,
boolean writable,
boolean publiclyVisible)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic MemoryStream(int capacity)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic MemoryStream(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static MemoryStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MemoryStream, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMemoryStream instancejava.lang.Throwable - in case of error during cast operationpublic Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, SecurityException, InvalidOperationException, ArgumentException, OperationCanceledException, TaskSchedulerException, SemaphoreFullException
public void Flush()
throws java.lang.Throwable
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, ObjectDisposedException, AbandonedMutexException, ArgumentException
FlushAsync in class Streamjava.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentExceptionpublic byte[] GetBuffer()
throws java.lang.Throwable,
UnauthorizedAccessException
java.lang.ThrowableUnauthorizedAccessExceptionpublic int getCapacity()
throws java.lang.Throwable,
ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class StreamString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class StreamString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class StreamObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class StreamString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class StreamJCType representing the CLR Type of the instantiated Classpublic int Read(JCORefOut buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException
Read in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionpublic int ReadByte()
throws java.lang.Throwable,
ObjectDisposedException
ReadByte in class Streamjava.lang.ThrowableObjectDisposedExceptionpublic long Seek(long offset,
SeekOrigin loc)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentOutOfRangeException,
IOException,
ArgumentException
Seek in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentOutOfRangeExceptionIOExceptionArgumentExceptionpublic void setCapacity(int Capacity)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ObjectDisposedException,
NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionObjectDisposedExceptionNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class Streampublic void SetLength(long value)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
NotSupportedException,
IOException,
ObjectDisposedException
SetLength in class Streamjava.lang.ThrowableArgumentOutOfRangeExceptionNotSupportedExceptionIOExceptionObjectDisposedExceptionpublic byte[] ToArray()
throws java.lang.Throwable
java.lang.Throwablepublic void Write(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
ObjectDisposedException,
NotSupportedException,
IOException
Write in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionNotSupportedExceptionIOExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, NotSupportedException, IOException
Write in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionNotSupportedExceptionIOExceptionpublic Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException, MulticastNotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
WriteAsync in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidOperationExceptionMulticastNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException, MulticastNotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
WriteAsync in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidOperationExceptionMulticastNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic void WriteByte(byte value)
throws java.lang.Throwable,
ObjectDisposedException,
NotSupportedException,
IOException,
ArgumentOutOfRangeException
WriteByte in class Streamjava.lang.ThrowableObjectDisposedExceptionNotSupportedExceptionIOExceptionArgumentOutOfRangeExceptionpublic void WriteTo(Stream stream) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException
java.lang.ThrowableArgumentNullExceptionObjectDisposedException