public class NetworkStream extends Stream
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Sockets.NetworkStream
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.Net.Sockets, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Sockets
|
static java.lang.String |
className
Qualified class name: System.Net.Sockets.NetworkStream
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
NetworkStream() |
NetworkStream(java.lang.Object instance)
Internal constructor.
|
NetworkStream(Socket socket) |
NetworkStream(Socket socket,
boolean ownsSocket) |
NetworkStream(Socket socket,
FileAccess access) |
NetworkStream(Socket socket,
FileAccess access,
boolean ownsSocket) |
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginRead(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginRead(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
IAsyncResult |
BeginWrite(byte[] buffer,
int offset,
int count,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginWrite(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
static NetworkStream |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into NetworkStream, a cast assert is made to check if types are compatible. |
void |
Close(int timeout) |
void |
Close(TimeSpan timeout) |
int |
EndRead(IAsyncResult asyncResult) |
void |
EndWrite(IAsyncResult asyncResult) |
void |
Flush() |
Task |
FlushAsync(CancellationToken cancellationToken) |
boolean |
getDataAvailable() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
Socket |
getSocket() |
int |
Read(byte[] buffer,
int offset,
int count) |
int |
Read(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
int |
ReadByte() |
long |
Seek(long offset,
SeekOrigin origin) |
void |
setJCOInstance(JCObject instance) |
void |
SetLength(long value) |
void |
Write(byte[] buffer,
int offset,
int count) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
CancellationToken dupParam3) |
void |
WriteByte(byte value) |
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, WriteAsyncGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public NetworkStream()
throws java.lang.Throwable
java.lang.Throwablepublic NetworkStream(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic NetworkStream(Socket socket) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IOException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ObjectDisposedException, SocketException
public NetworkStream(Socket socket, boolean ownsSocket) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IOException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ObjectDisposedException, SocketException
public NetworkStream(Socket socket, FileAccess access) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IOException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException, ObjectDisposedException, SocketException
public NetworkStream(Socket socket, FileAccess access, boolean ownsSocket) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException, IndexOutOfRangeException, OutOfMemoryException, FormatException, EventSourceException, SocketException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionEventSourceExceptionSocketExceptionpublic IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, FormatException, NullReferenceException, IOException
BeginRead in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionIOExceptionpublic IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, FormatException, NullReferenceException, IOException
BeginRead in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionIOExceptionpublic IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, FormatException, NullReferenceException, IOException
BeginWrite in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionIOExceptionpublic IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, FormatException, NullReferenceException, IOException
BeginWrite in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionIOExceptionpublic static NetworkStream cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into NetworkStream, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedNetworkStream instancejava.lang.Throwable - in case of error during cast operationpublic void Close(int timeout)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public void Close(TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, TaskSchedulerException, TaskCanceledException, AggregateException, IOException
EndRead in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIOExceptionpublic void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, TaskSchedulerException, TaskCanceledException, AggregateException, IOException
EndWrite in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionIOExceptionpublic void Flush()
throws java.lang.Throwable
public Task FlushAsync(CancellationToken cancellationToken) throws java.lang.Throwable
FlushAsync in class Streamjava.lang.Throwablepublic boolean getDataAvailable()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArgumentNullException,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
OutOfMemoryException,
ArrayTypeMismatchException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
EventSourceException,
SocketException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionArrayTypeMismatchExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionFormatExceptionEventSourceExceptionSocketExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class StreamString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class StreamString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class StreamObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class StreamString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class StreamJCType representing the CLR Type of the instantiated Classpublic Socket getSocket() throws java.lang.Throwable
java.lang.Throwablepublic int Read(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
SocketException,
IndexOutOfRangeException,
IOException
Read in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionSocketExceptionIndexOutOfRangeExceptionIOExceptionpublic int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, SocketException, IndexOutOfRangeException, IOException
Read in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionSocketExceptionIndexOutOfRangeExceptionIOExceptionpublic int ReadByte()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
IOException
public long Seek(long offset,
SeekOrigin origin)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
Seek in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class Streampublic void SetLength(long value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
SetLength in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionpublic void Write(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
SocketException,
IndexOutOfRangeException,
IOException
Write in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionSocketExceptionIndexOutOfRangeExceptionIOExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, SocketException, IndexOutOfRangeException, IOException
Write in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionObjectDisposedExceptionSocketExceptionIndexOutOfRangeExceptionIOExceptionpublic Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, OutOfMemoryException, IndexOutOfRangeException, FormatException, IOException
WriteAsync in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionpublic Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2, CancellationToken dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, OutOfMemoryException, IndexOutOfRangeException, FormatException, IOException
WriteAsync in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionpublic void WriteByte(byte value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
WriteByte in class Streamjava.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeException