public class PipeReader extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.IO.Pipelines.PipeReader
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.IO.Pipelines, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.IO.Pipelines
|
static java.lang.String |
className
Qualified class name: System.IO.Pipelines.PipeReader
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
PipeReader() |
PipeReader(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AdvanceTo(SequencePosition consumed)
Invokes the .NET member AdvanceTo.
|
void |
AdvanceTo(SequencePosition consumed,
SequencePosition examined)
Invokes the .NET member AdvanceTo.
|
Stream |
AsStream(boolean leaveOpen)
Invokes the .NET member AsStream.
|
void |
CancelPendingRead()
Invokes the .NET member CancelPendingRead.
|
static PipeReader |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into PipeReader, a cast assert is made to check if types are compatible. |
void |
Complete(NetException exception)
Invokes the .NET member Complete.
|
ValueTask |
CompleteAsync(NetException exception)
Invokes the .NET member CompleteAsync.
|
Task |
CopyToAsync(PipeWriter destination,
CancellationToken cancellationToken)
Invokes the .NET member CopyToAsync.
|
Task |
CopyToAsync(Stream destination,
CancellationToken cancellationToken)
Invokes the .NET member CopyToAsync.
|
static PipeReader |
Create(ReadOnlySequence_1 sequence)
Invokes the .NET member Create.
|
static PipeReader |
Create(Stream stream,
StreamPipeReaderOptions readerOptions)
Invokes the .NET member Create.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
OnWriterCompleted(Action_2 callback,
NetObject state)
Invokes the .NET member OnWriterCompleted.
|
ValueTask_1 |
ReadAsync(CancellationToken cancellationToken)
Invokes the .NET member ReadAsync.
|
ValueTask_1 |
ReadAtLeastAsync(int minimumSize,
CancellationToken cancellationToken)
Invokes the .NET member ReadAtLeastAsync.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
boolean |
TryRead(JCORefOut<ReadResult> result)
Invokes the .NET member TryRead.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public PipeReader()
throws java.lang.Throwable
java.lang.Throwablepublic PipeReader(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void AdvanceTo(SequencePosition consumed) throws java.lang.Throwable
consumed - the argument of type SequencePositionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void AdvanceTo(SequencePosition consumed, SequencePosition examined) throws java.lang.Throwable
consumed - the argument of type SequencePositionexamined - the argument of type SequencePositionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Stream AsStream(boolean leaveOpen) throws java.lang.Throwable
leaveOpen - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void CancelPendingRead()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static PipeReader cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into PipeReader, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPipeReader instancejava.lang.Throwable - in case of error during cast operationpublic void Complete(NetException exception) throws java.lang.Throwable
exception - the argument of type NetExceptionjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ValueTask CompleteAsync(NetException exception) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IndexOutOfRangeException
exception - the argument of type NetExceptionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itNullReferenceException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task CopyToAsync(PipeWriter destination, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
destination - the argument of type PipeWritercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Task CopyToAsync(Stream destination, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, OperationCanceledException, SemaphoreFullException, TaskSchedulerException
destination - the argument of type StreamcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itNullReferenceException - if the .NET member raises itOperationCanceledException - if the .NET member raises itSemaphoreFullException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itpublic static PipeReader Create(ReadOnlySequence_1 sequence) throws java.lang.Throwable
sequence - the argument of type ReadOnlySequence_1java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static PipeReader Create(Stream stream, StreamPipeReaderOptions readerOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
stream - the argument of type StreamreaderOptions - the argument of type StreamPipeReaderOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void OnWriterCompleted(Action_2 callback, NetObject state) throws java.lang.Throwable
callback - the argument of type Action_2state - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ValueTask_1 ReadAsync(CancellationToken cancellationToken) throws java.lang.Throwable
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ValueTask_1 ReadAtLeastAsync(int minimumSize, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
minimumSize - the argument of type intcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic boolean TryRead(JCORefOut<ReadResult> result) throws java.lang.Throwable
result - the argument of type JCORefOut<ReadResult>java.lang.Throwable - if the call fails in the bridge or in the CLR