public class Stream extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Stream
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.Stream
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Stream() |
Stream(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginRead(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginRead(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
IAsyncResult |
BeginWrite(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginWrite(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
static Stream |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Stream, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
void |
CopyTo(Stream destination) |
void |
CopyTo(Stream destination,
int bufferSize) |
Task |
CopyToAsync(Stream destination) |
Task |
CopyToAsync(Stream destination,
int bufferSize) |
Task |
CopyToAsync(Stream destination,
int bufferSize,
CancellationToken cancellationToken) |
void |
Dispose() |
int |
EndRead(IAsyncResult asyncResult) |
void |
EndWrite(IAsyncResult asyncResult) |
void |
Flush() |
Task |
FlushAsync() |
Task |
FlushAsync(CancellationToken cancellationToken) |
boolean |
getCanRead() |
boolean |
getCanSeek() |
boolean |
getCanTimeout() |
boolean |
getCanWrite() |
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 |
getLength() |
long |
getPosition() |
int |
getReadTimeout() |
int |
getWriteTimeout() |
int |
Read(JCORefOut buffer,
int offset,
int count) |
int |
ReadByte() |
long |
Seek(long offset,
SeekOrigin origin) |
void |
setJCOInstance(JCObject instance) |
void |
SetLength(long value) |
void |
setPosition(long Position) |
void |
setReadTimeout(int ReadTimeout) |
void |
setWriteTimeout(int WriteTimeout) |
static Stream |
Synchronized(Stream stream) |
void |
Write(byte[] buffer,
int offset,
int count) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(byte[] buffer,
int offset,
int count) |
Task |
WriteAsync(byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
CancellationToken dupParam3) |
void |
WriteByte(byte value) |
CreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Stream()
throws java.lang.Throwable
java.lang.Throwablepublic Stream(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException, AbandonedMutexException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionNullReferenceExceptionAbandonedMutexExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIndexOutOfRangeExceptionpublic IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException, AbandonedMutexException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionNullReferenceExceptionAbandonedMutexExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIndexOutOfRangeExceptionpublic IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException, AbandonedMutexException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionNullReferenceExceptionAbandonedMutexExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIndexOutOfRangeExceptionpublic IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException, AbandonedMutexException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, IndexOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionNullReferenceExceptionAbandonedMutexExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIndexOutOfRangeExceptionpublic static Stream cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Stream, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedStream 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 CopyTo(Stream destination) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionObjectDisposedExceptionNotSupportedExceptionpublic void CopyTo(Stream destination, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNotSupportedExceptionpublic Task CopyToAsync(Stream destination) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, SecurityException, InvalidOperationException
public Task CopyToAsync(Stream destination, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, SecurityException, InvalidOperationException
public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, NotSupportedException, SecurityException, InvalidOperationException, NullReferenceException, ArgumentException
public void Dispose()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ThreadAbortException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, OperationCanceledException, AbandonedMutexException, TaskCanceledException, AggregateException, SemaphoreFullException, LockRecursionException, SynchronizationLockException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionThreadAbortExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionOperationCanceledExceptionAbandonedMutexExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionLockRecursionExceptionSynchronizationLockExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionpublic void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ThreadAbortException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, OperationCanceledException, AbandonedMutexException, TaskCanceledException, AggregateException, SemaphoreFullException, LockRecursionException, SynchronizationLockException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionThreadAbortExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionOperationCanceledExceptionAbandonedMutexExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionLockRecursionExceptionSynchronizationLockExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionpublic void Flush()
throws java.lang.Throwable
java.lang.Throwablepublic Task FlushAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException, EventSourceException, TaskSchedulerException
public boolean getCanRead()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanSeek()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanTimeout()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getCanWrite()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic long getLength()
throws java.lang.Throwable
java.lang.Throwablepublic long getPosition()
throws java.lang.Throwable
java.lang.Throwablepublic int getReadTimeout()
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic int getWriteTimeout()
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic int Read(JCORefOut buffer, int offset, int count) throws java.lang.Throwable
java.lang.Throwablepublic int ReadByte()
throws java.lang.Throwable
java.lang.Throwablepublic long Seek(long offset,
SeekOrigin origin)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void SetLength(long value)
throws java.lang.Throwable
java.lang.Throwablepublic void setPosition(long Position)
throws java.lang.Throwable
java.lang.Throwablepublic void setReadTimeout(int ReadTimeout)
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic void setWriteTimeout(int WriteTimeout)
throws java.lang.Throwable,
InvalidOperationException
java.lang.ThrowableInvalidOperationExceptionpublic static Stream Synchronized(Stream stream) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic void Write(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable
java.lang.Throwablepublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
java.lang.Throwablepublic Task WriteAsync(byte[] buffer, int offset, int count) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, OperationCanceledException, TaskSchedulerException, SemaphoreFullException
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, TaskSchedulerException, SemaphoreFullException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionSemaphoreFullExceptionpublic Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, OperationCanceledException, TaskSchedulerException, SemaphoreFullException
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, ArgumentException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, TaskSchedulerException, SemaphoreFullException
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionArgumentExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionTaskSchedulerExceptionSemaphoreFullExceptionpublic void WriteByte(byte value)
throws java.lang.Throwable
java.lang.Throwable