Package system.io.pipes
Class NamedPipeClientStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.io.pipes.PipeStream
-
- system.io.pipes.NamedPipeClientStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class NamedPipeClientStream extends PipeStream
The base .NET class managing System.IO.Pipes.NamedPipeClientStream, System.IO.Pipes, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Pipes.NamedPipeClientStream
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.String
assemblyFullName
Fully assembly qualified name: System.IO.Pipes, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.IO.Pipesstatic java.lang.String
className
Qualified class name: System.IO.Pipes.NamedPipeClientStreamstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description NamedPipeClientStream()
NamedPipeClientStream(java.lang.Object instance)
Internal constructor.NamedPipeClientStream(java.lang.String pipeName)
NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName)
NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction)
NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options)
NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options, TokenImpersonationLevel impersonationLevel)
NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options, TokenImpersonationLevel impersonationLevel, HandleInheritability inheritability)
NamedPipeClientStream(PipeDirection direction, boolean isAsync, boolean isConnected, SafePipeHandle safePipeHandle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedPipeClientStream
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoNamedPipeClientStream
, a cast assert is made to check if types are compatible.void
Connect()
void
Connect(int timeout)
void
Connect(TimeSpan timeout)
Task
ConnectAsync()
Task
ConnectAsync(int timeout)
Task
ConnectAsync(int timeout, CancellationToken cancellationToken)
Task
ConnectAsync(CancellationToken cancellationToken)
Task
ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getNumberOfServerInstances()
void
setJCOInstance(JCObject instance)
-
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=8.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.NamedPipeClientStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
NamedPipeClientStream
public NamedPipeClientStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
NamedPipeClientStream
public NamedPipeClientStream(PipeDirection direction, boolean isAsync, boolean isConnected, SafePipeHandle safePipeHandle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, ApplicationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
ApplicationException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
OutOfMemoryException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options, TokenImpersonationLevel impersonationLevel, HandleInheritability inheritability) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options, TokenImpersonationLevel impersonationLevel) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction, PipeOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName, PipeDirection direction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String serverName, java.lang.String pipeName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException
-
NamedPipeClientStream
public NamedPipeClientStream(java.lang.String pipeName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classPipeStream
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classPipeStream
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classPipeStream
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classPipeStream
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classPipeStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classPipeStream
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static NamedPipeClientStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoNamedPipeClientStream
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
NamedPipeClientStream
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ConnectAsync
public Task ConnectAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OperationCanceledException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException, NotSupportedException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
FormatException
OperationCanceledException
MissingMethodException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
NotSupportedException
EventSourceException
-
ConnectAsync
public Task ConnectAsync(int timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OperationCanceledException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OperationCanceledException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
EventSourceException
-
ConnectAsync
public Task ConnectAsync(int timeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OperationCanceledException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException, NotSupportedException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
FormatException
OperationCanceledException
MissingMethodException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
NotSupportedException
EventSourceException
-
ConnectAsync
public Task ConnectAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OperationCanceledException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException, NotSupportedException, EventSourceException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
FormatException
OperationCanceledException
MissingMethodException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
NotSupportedException
EventSourceException
-
ConnectAsync
public Task ConnectAsync(TimeSpan timeout, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OperationCanceledException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException, EventSourceException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
OperationCanceledException
MissingMethodException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
EventSourceException
ArgumentNullException
-
Connect
public void Connect() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, FormatException, OperationCanceledException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
IndexOutOfRangeException
FormatException
OperationCanceledException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
OutOfMemoryException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
-
Connect
public void Connect(int timeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OperationCanceledException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException, PrivilegeNotHeldException, UnauthorizedAccessException, LockRecursionException, SynchronizationLockException, SecurityException, AccessViolationException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OperationCanceledException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
OutOfMemoryException
PrivilegeNotHeldException
UnauthorizedAccessException
LockRecursionException
SynchronizationLockException
SecurityException
AccessViolationException
TimeoutException
-
Connect
public void Connect(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OperationCanceledException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, OutOfMemoryException, ArgumentNullException, SynchronizationLockException, SecurityException, AccessViolationException, UnauthorizedAccessException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
OperationCanceledException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
OutOfMemoryException
ArgumentNullException
SynchronizationLockException
SecurityException
AccessViolationException
UnauthorizedAccessException
TimeoutException
-
getNumberOfServerInstances
public int getNumberOfServerInstances() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
-
-