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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
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 size,
AsyncCallback callback,
NetObject state) |
IAsyncResult |
BeginRead(JCORefOut dupParam0,
int dupParam1,
int dupParam2,
AsyncCallback dupParam3,
NetObject dupParam4) |
IAsyncResult |
BeginWrite(byte[] buffer,
int offset,
int size,
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) |
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
|
int |
Read(JCORefOut buffer,
int offset,
int size) |
long |
Seek(long offset,
SeekOrigin origin) |
void |
setJCOInstance(JCObject instance) |
void |
SetLength(long value) |
void |
Write(byte[] buffer,
int offset,
int size) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
close, Close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, ReadByte, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync, WriteAsync, WriteAsync, WriteByteCreateObjRef, GetLifetimeService, 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, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic NetworkStream(Socket socket, boolean ownsSocket) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic NetworkStream(Socket socket, FileAccess access) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic NetworkStream(Socket socket, FileAccess access, boolean ownsSocket) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, AccessViolationException, IndexOutOfRangeException, SecurityException, SocketException
BeginRead in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionIndexOutOfRangeExceptionSecurityExceptionSocketExceptionpublic IAsyncResult BeginRead(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, AccessViolationException, IndexOutOfRangeException, SecurityException, SocketException
BeginRead in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionIndexOutOfRangeExceptionSecurityExceptionSocketExceptionpublic IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, NetObject state) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, AccessViolationException, IndexOutOfRangeException, SecurityException, SocketException
BeginWrite in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionIndexOutOfRangeExceptionSecurityExceptionSocketExceptionpublic IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, AccessViolationException, IndexOutOfRangeException, SecurityException, SocketException
BeginWrite in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionAccessViolationExceptionIndexOutOfRangeExceptionSecurityExceptionSocketExceptionpublic 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,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionpublic int EndRead(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, SecurityException, NullReferenceException, IndexOutOfRangeException, SocketException
EndRead in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionSecurityExceptionNullReferenceExceptionIndexOutOfRangeExceptionSocketExceptionpublic void EndWrite(IAsyncResult asyncResult) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, SecurityException, NullReferenceException, IndexOutOfRangeException, SocketException
EndWrite in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionSecurityExceptionNullReferenceExceptionIndexOutOfRangeExceptionSocketExceptionpublic 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,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
FormatException,
IOException,
IndexOutOfRangeException,
ConfigurationErrorsException,
MulticastNotSupportedException,
OutOfMemoryException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionIndexOutOfRangeExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic 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 int Read(JCORefOut buffer, int offset, int size) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, SecurityException, NullReferenceException, SocketException
Read in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionSocketExceptionpublic long Seek(long offset,
SeekOrigin origin)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
Seek in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class Streampublic void SetLength(long value)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException
SetLength in class Streamjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic void Write(byte[] buffer,
int offset,
int size)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
FormatException,
IOException,
ConfigurationException,
ConfigurationErrorsException,
MulticastNotSupportedException,
OutOfMemoryException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException,
SecurityException,
NullReferenceException,
SocketException
Write in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionSocketExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, FormatException, IOException, ConfigurationException, ConfigurationErrorsException, MulticastNotSupportedException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, SecurityException, NullReferenceException, SocketException
Write in class Streamjava.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionFormatExceptionIOExceptionConfigurationExceptionConfigurationErrorsExceptionMulticastNotSupportedExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionSocketException