Package system.io.pipes
Class PipeStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.io.pipes.PipeStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
- Direct Known Subclasses:
AnonymousPipeClientStream,AnonymousPipeServerStream,NamedPipeClientStream,NamedPipeServerStream
public class PipeStream extends Stream
The base .NET class managing System.IO.Pipes.PipeStream, System.IO.Pipes, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.IO.Pipes.PipeStream
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.Pipes, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.Pipesstatic java.lang.StringclassNameQualified class name: System.IO.Pipes.PipeStreamstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PipeStream()PipeStream(java.lang.Object instance)Internal constructor.
-
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 PipeStreamcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPipeStream, a cast assert is made to check if types are compatible.intEndRead(IAsyncResult asyncResult)voidEndWrite(IAsyncResult asyncResult)voidFlush()TaskFlushAsync(CancellationToken cancellationToken)intgetInBufferSize()booleangetIsAsync()booleangetIsConnected()booleangetIsMessageComplete()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 TypeintgetOutBufferSize()PipeTransmissionModegetReadMode()SafePipeHandlegetSafePipeHandle()PipeTransmissionModegetTransmissionMode()intRead(byte[] buffer, int offset, int count)intRead(JCORefOut dupParam0, int dupParam1, int dupParam2)intReadByte()longSeek(long offset, SeekOrigin origin)voidsetIsConnected(boolean IsConnected)voidsetJCOInstance(JCObject instance)voidSetLength(long value)voidsetReadMode(PipeTransmissionMode ReadMode)voidWaitForPipeDrain()voidWrite(byte[] buffer, int offset, int count)voidWrite(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3)voidWriteByte(byte value)-
Methods inherited from class system.io.Stream
close, Close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, DisposeAsync, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IO.Pipes, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.Pipes- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Pipes.PipeStream- 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 classStream- 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 classStream- 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 classStream- 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 classStream- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classStream- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PipeStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPipeStream, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PipeStreaminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
EndRead
public int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, EventSourceException, ArgumentNullException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, TaskCanceledException, AggregateException, ArgumentException, SemaphoreFullException
- Overrides:
EndReadin classStream- Throws:
java.lang.ThrowableEventSourceExceptionArgumentNullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionTaskCanceledExceptionAggregateExceptionArgumentExceptionSemaphoreFullException
-
Read
public int Read(byte[] buffer, int offset, int count) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException, ArrayTypeMismatchException- Overrides:
Readin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionArrayTypeMismatchException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException, ArrayTypeMismatchException
- Overrides:
Readin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionArrayTypeMismatchException
-
ReadByte
public int ReadByte() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, ArrayTypeMismatchException- Overrides:
ReadBytein classStream- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionArrayTypeMismatchException
-
Seek
public long Seek(long offset, SeekOrigin origin) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException- Overrides:
Seekin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedException
-
BeginRead
public IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Overrides:
BeginReadin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
BeginRead
public IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Overrides:
BeginReadin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWritein classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException
- Overrides:
BeginWritein classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentException
-
FlushAsync
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, SynchronizationLockException, IndexOutOfRangeException
- Overrides:
FlushAsyncin classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionSynchronizationLockExceptionIndexOutOfRangeException
-
WriteAsync
public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, NotSupportedException, TaskSchedulerException
- Overrides:
WriteAsyncin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIOExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionNotSupportedExceptionTaskSchedulerException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, NotSupportedException, TaskSchedulerException
- Overrides:
WriteAsyncin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIOExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionNotSupportedExceptionTaskSchedulerException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, EventSourceException, ArgumentNullException, InvalidOperationException, TaskSchedulerException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, TaskCanceledException, AggregateException, ArgumentException, SemaphoreFullException
- Overrides:
EndWritein classStream- Throws:
java.lang.ThrowableEventSourceExceptionArgumentNullExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionTaskCanceledExceptionAggregateExceptionArgumentExceptionSemaphoreFullException
-
Flush
public void Flush() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException- Overrides:
Flushin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIOException
-
SetLength
public void SetLength(long value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException- Overrides:
SetLengthin classStream- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedException
-
WaitForPipeDrain
public void WaitForPipeDrain() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IOException, IndexOutOfRangeException
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException, IOException- Overrides:
Writein classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionIOException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, AggregateException, SemaphoreFullException, TaskSchedulerException, ArgumentException, IOException
- Overrides:
Writein classStream- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionSemaphoreFullExceptionTaskSchedulerExceptionArgumentExceptionIOException
-
WriteByte
public void WriteByte(byte value) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException- Overrides:
WriteBytein classStream- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArrayTypeMismatchException
-
getIsAsync
public boolean getIsAsync() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsConnected
public boolean getIsConnected() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIsConnected
public void setIsConnected(boolean IsConnected) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsMessageComplete
public boolean getIsMessageComplete() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationException
-
getInBufferSize
public int getInBufferSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException
-
getOutBufferSize
public int getOutBufferSize() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, NotSupportedException, IndexOutOfRangeException
-
getSafePipeHandle
public SafePipeHandle getSafePipeHandle() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationException
-
getReadMode
public PipeTransmissionMode getReadMode() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException
-
setReadMode
public void setReadMode(PipeTransmissionMode ReadMode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException
-
getTransmissionMode
public PipeTransmissionMode getTransmissionMode() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException
-
-