Package system.io
Class Stream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
- Direct Known Subclasses:
AuthenticatedStream,BrotliStream,BufferedStream,CryptoStream,DeflateStream,FileStream,GZipStream,MemoryStream,NetworkStream,PipeStream,PrintQueueStream,QuicStream,UnmanagedMemoryStream,ZLibStream
public class Stream extends MarshalByRefObject implements java.lang.AutoCloseable
The base .NET class managing System.IO.Stream, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Stream
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.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.IO.Streamstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResultBeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state)IAsyncResultBeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)IAsyncResultBeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state)IAsyncResultBeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)static Streamcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoStream, a cast assert is made to check if types are compatible.voidclose()voidClose()voidCopyTo(Stream destination)voidCopyTo(Stream destination, int bufferSize)TaskCopyToAsync(Stream destination)TaskCopyToAsync(Stream destination, int bufferSize)TaskCopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)TaskCopyToAsync(Stream destination, CancellationToken cancellationToken)voidDispose()ValueTaskDisposeAsync()intEndRead(IAsyncResult asyncResult)voidEndWrite(IAsyncResult asyncResult)voidFlush()TaskFlushAsync()TaskFlushAsync(CancellationToken cancellationToken)booleangetCanRead()booleangetCanSeek()booleangetCanTimeout()booleangetCanWrite()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 TypelonggetLength()longgetPosition()intgetReadTimeout()intgetWriteTimeout()intRead(byte[] buffer, int offset, int count)intRead(JCORefOut dupParam0, int dupParam1, int dupParam2)intReadByte()voidReadExactly(byte[] buffer, int offset, int count)voidReadExactly(JCORefOut dupParam0, int dupParam1, int dupParam2)ValueTaskReadExactlyAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTaskReadExactlyAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3)longSeek(long offset, SeekOrigin origin)voidsetJCOInstance(JCObject instance)voidSetLength(long value)voidsetPosition(long Position)voidsetReadTimeout(int ReadTimeout)voidsetWriteTimeout(int WriteTimeout)static StreamSynchronized(Stream stream)voidWrite(byte[] buffer, int offset, int count)voidWrite(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(byte[] buffer, int offset, int count)TaskWriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3)voidWriteByte(byte value)-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Stream- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Stream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoStream, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Streaminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
EndRead
public int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, EventSourceException, TaskSchedulerException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionEventSourceExceptionTaskSchedulerExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullException
-
Read
public int Read(byte[] buffer, int offset, int count) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ReadByte
public int ReadByte() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Seek
public long Seek(long offset, SeekOrigin origin) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
BeginRead
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeException
-
BeginRead
public IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeException
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OperationCanceledException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOperationCanceledExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeException
-
Synchronized
public static Stream Synchronized(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
CopyToAsync
public Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
CopyToAsync
public Task CopyToAsync(Stream destination, int bufferSize) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
CopyToAsync
public Task CopyToAsync(Stream destination, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
CopyToAsync
public Task CopyToAsync(Stream destination) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionObjectDisposedException
-
FlushAsync
public Task FlushAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, EventSourceException, IndexOutOfRangeException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, OutOfMemoryException, EventSourceException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException, EventSourceException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeExceptionEventSourceException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, IndexOutOfRangeException, EventSourceException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionIndexOutOfRangeExceptionEventSourceException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionNotSupportedExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
DisposeAsync
public ValueTask DisposeAsync() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, IndexOutOfRangeException
-
ReadExactlyAsync
public ValueTask ReadExactlyAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ReadExactlyAsync
public ValueTask ReadExactlyAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
CopyTo
public void CopyTo(Stream destination, int bufferSize) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
CopyTo
public void CopyTo(Stream destination) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, ObjectDisposedException
-
Dispose
public void Dispose() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, EventSourceException, TaskSchedulerException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionEventSourceExceptionTaskSchedulerExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullException
-
Flush
public void Flush() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ReadExactly
public void ReadExactly(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException
-
ReadExactly
public void ReadExactly(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException
-
SetLength
public void SetLength(long value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
WriteByte
public void WriteByte(byte value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getCanRead
public boolean getCanRead() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCanSeek
public boolean getCanSeek() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCanTimeout
public boolean getCanTimeout() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCanWrite
public boolean getCanWrite() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getReadTimeout
public int getReadTimeout() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
setReadTimeout
public void setReadTimeout(int ReadTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
getWriteTimeout
public int getWriteTimeout() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
setWriteTimeout
public void setWriteTimeout(int WriteTimeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
getLength
public long getLength() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPosition
public long getPosition() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPosition
public void setPosition(long Position) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-