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.String
assemblyFullName
Fully assembly qualified name: System.IO.Pipes, Version=9.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.NamedPipeServerStreamstatic JCType
classType
The 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 IAsyncResult
BeginWaitForConnection(AsyncCallback callback, NetObject state)
static NamedPipeServerStream
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoNamedPipeServerStream
, a cast assert is made to check if types are compatible.void
Disconnect()
void
EndWaitForConnection(IAsyncResult asyncResult)
java.lang.String
GetImpersonationUserName()
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 Typevoid
RunAsClient(PipeStreamImpersonationWorker impersonationWorker)
void
setJCOInstance(JCObject instance)
void
WaitForConnection()
Task
WaitForConnectionAsync()
Task
WaitForConnectionAsync(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.Throwable
Internal 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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
IOException
ApplicationException
MissingMethodException
TargetInvocationException
OutOfMemoryException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
InvalidOperationException
SecurityException
AccessViolationException
SynchronizationLockException
MissingMethodException
TargetInvocationException
-
-
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 NamedPipeServerStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoNamedPipeServerStream
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
NamedPipeServerStream
instance- 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.Throwable
ArgumentException
InvalidOperationException
IOException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentOutOfRangeException
ObjectDisposedException
IndexOutOfRangeException
ArgumentNullException
OutOfMemoryException
TaskSchedulerException
TaskCanceledException
AggregateException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
IOException
NullReferenceException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
FormatException
TaskSchedulerException
TaskCanceledException
AggregateException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
IOException
NullReferenceException
OutOfMemoryException
IndexOutOfRangeException
FormatException
TaskSchedulerException
OperationCanceledException
TaskCanceledException
AggregateException
-
-