Package system.io.pipes
Class NamedPipeServerStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.io.pipes.PipeStream
-
- system.io.pipes.NamedPipeServerStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class NamedPipeServerStream extends PipeStream
The base .NET class managing System.IO.Pipes.NamedPipeServerStream, System.IO.Pipes, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Pipes.NamedPipeServerStream
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.IO.Pipes, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.Pipesstatic java.lang.StringclassNameQualified class name: System.IO.Pipes.NamedPipeServerStreamstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description NamedPipeServerStream()NamedPipeServerStream(java.lang.Object instance)Internal constructor.NamedPipeServerStream(java.lang.String pipeName)NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction)NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances)NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode)NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options)NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, int inBufferSize, int outBufferSize)NamedPipeServerStream(PipeDirection direction, boolean isAsync, boolean isConnected, SafePipeHandle safePipeHandle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResultBeginWaitForConnection(AsyncCallback callback, NetObject state)static NamedPipeServerStreamcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoNamedPipeServerStream, a cast assert is made to check if types are compatible.voidDisconnect()voidEndWaitForConnection(IAsyncResult asyncResult)java.lang.StringGetImpersonationUserName()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 TypevoidRunAsClient(PipeStreamImpersonationWorker impersonationWorker)voidsetJCOInstance(JCObject instance)voidWaitForConnection()TaskWaitForConnectionAsync()TaskWaitForConnectionAsync(CancellationToken cancellationToken)-
Methods inherited from class system.io.pipes.PipeStream
BeginRead, BeginRead, BeginWrite, BeginWrite, EndRead, EndWrite, Flush, FlushAsync, getInBufferSize, getIsAsync, getIsConnected, getIsMessageComplete, getOutBufferSize, getReadMode, getSafePipeHandle, getTransmissionMode, Read, Read, ReadByte, Seek, setIsConnected, SetLength, setReadMode, WaitForPipeDrain, Write, Write, WriteAsync, WriteAsync, WriteByte
-
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, ReadExactly, ReadExactly, ReadExactlyAsync, ReadExactlyAsync, 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=9.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.NamedPipeServerStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
NamedPipeServerStream
public NamedPipeServerStream() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
NamedPipeServerStream
public NamedPipeServerStream(PipeDirection direction, boolean isAsync, boolean isConnected, SafePipeHandle safePipeHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IOException, ApplicationException, MissingMethodException, TargetInvocationException, OutOfMemoryException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionApplicationExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, int inBufferSize, int outBufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances, PipeTransmissionMode transmissionMode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction, int maxNumberOfServerInstances) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName, PipeDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
NamedPipeServerStream
public NamedPipeServerStream(java.lang.String pipeName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, SecurityException, AccessViolationException, SynchronizationLockException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionSecurityExceptionAccessViolationExceptionSynchronizationLockExceptionMissingMethodExceptionTargetInvocationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classPipeStream- 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 classPipeStream- 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 classPipeStream- 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 classPipeStream- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classPipeStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classPipeStream- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static NamedPipeServerStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoNamedPipeServerStream, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
NamedPipeServerStreaminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
BeginWaitForConnection
public IAsyncResult BeginWaitForConnection(AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, InvalidOperationException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, TaskCanceledException, AggregateException, EventSourceException
-
GetImpersonationUserName
public java.lang.String GetImpersonationUserName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IOException, OutOfMemoryException
-
WaitForConnectionAsync
public Task WaitForConnectionAsync() throws java.lang.Throwable, ArgumentException, InvalidOperationException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, ObjectDisposedException, IndexOutOfRangeException, ArgumentNullException, OutOfMemoryException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionIOExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIndexOutOfRangeExceptionArgumentNullExceptionOutOfMemoryExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateException
-
WaitForConnectionAsync
public Task WaitForConnectionAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IOException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, TaskSchedulerException, TaskCanceledException, AggregateException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNullReferenceExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateException
-
Disconnect
public void Disconnect() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
EndWaitForConnection
public void EndWaitForConnection(IAsyncResult asyncResult) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, TaskCanceledException, AggregateException
-
RunAsClient
public void RunAsClient(PipeStreamImpersonationWorker impersonationWorker) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
WaitForConnection
public void WaitForConnection() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IOException, NullReferenceException, OutOfMemoryException, IndexOutOfRangeException, FormatException, TaskSchedulerException, OperationCanceledException, TaskCanceledException, AggregateException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionNullReferenceExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionTaskSchedulerExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateException
-
-