Package system.io.ports
Class SerialPort
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.io.ports.SerialPort
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class SerialPort extends Component
The base .NET class managing System.IO.Ports.SerialPort, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Ports.SerialPort
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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: Systemstatic java.lang.String
className
Qualified class name: System.IO.Ports.SerialPortstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SerialPort()
SerialPort(java.lang.Object instance)
Internal constructor.SerialPort(java.lang.String portName)
SerialPort(java.lang.String portName, int baudRate)
SerialPort(java.lang.String portName, int baudRate, Parity parity)
SerialPort(java.lang.String portName, int baudRate, Parity parity, int dataBits)
SerialPort(java.lang.String portName, int baudRate, Parity parity, int dataBits, StopBits stopBits)
SerialPort(IContainer container)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataReceived(SerialDataReceivedEventHandler handler)
void
addErrorReceived(SerialErrorReceivedEventHandler handler)
void
addPinChanged(SerialPinChangedEventHandler handler)
static SerialPort
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSerialPort
, a cast assert is made to check if types are compatible.void
Close()
void
DiscardInBuffer()
void
DiscardOutBuffer()
Stream
getBaseStream()
int
getBaudRate()
boolean
getBreakState()
int
getBytesToRead()
int
getBytesToWrite()
boolean
getCDHolding()
boolean
getCtsHolding()
int
getDataBits()
boolean
getDiscardNull()
boolean
getDsrHolding()
boolean
getDtrEnable()
Encoding
getEncoding()
Handshake
getHandshake()
boolean
getIsOpen()
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 Typejava.lang.String
getNewLine()
Parity
getParity()
byte
getParityReplace()
java.lang.String
getPortName()
static java.lang.String[]
GetPortNames()
int
getReadBufferSize()
int
getReadTimeout()
int
getReceivedBytesThreshold()
boolean
getRtsEnable()
StopBits
getStopBits()
int
getWriteBufferSize()
int
getWriteTimeout()
void
Open()
int
Read(byte[] buffer, int offset, int count)
int
Read(char[] buffer, int offset, int count)
int
Read(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadByte()
int
ReadChar()
java.lang.String
ReadExisting()
java.lang.String
ReadLine()
java.lang.String
ReadTo(java.lang.String value)
void
removeDataReceived(SerialDataReceivedEventHandler handler)
void
removeErrorReceived(SerialErrorReceivedEventHandler handler)
void
removePinChanged(SerialPinChangedEventHandler handler)
void
setBaudRate(int BaudRate)
void
setBreakState(boolean BreakState)
void
setDataBits(int DataBits)
void
setDiscardNull(boolean DiscardNull)
void
setDtrEnable(boolean DtrEnable)
void
setEncoding(Encoding Encoding)
void
setHandshake(Handshake Handshake)
void
setJCOInstance(JCObject instance)
void
setNewLine(java.lang.String NewLine)
void
setParity(Parity Parity)
void
setParityReplace(byte ParityReplace)
void
setPortName(java.lang.String PortName)
void
setReadBufferSize(int ReadBufferSize)
void
setReadTimeout(int ReadTimeout)
void
setReceivedBytesThreshold(int ReceivedBytesThreshold)
void
setRtsEnable(boolean RtsEnable)
void
setStopBits(StopBits StopBits)
void
setWriteBufferSize(int WriteBufferSize)
void
setWriteTimeout(int WriteTimeout)
void
Write(byte[] buffer, int offset, int count)
void
Write(char[] buffer, int offset, int count)
void
Write(java.lang.String text)
void
Write(JCORefOut dupParam0, int dupParam1, int dupParam2)
void
WriteLine(java.lang.String text)
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Ports.SerialPort- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerialPort
public SerialPort(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SerialPort
public SerialPort() throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
SerialPort
public SerialPort(IContainer container) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
SerialPort
public SerialPort(java.lang.String portName) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IOException
UnauthorizedAccessException
PathTooLongException
-
SerialPort
public SerialPort(java.lang.String portName, int baudRate) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IOException
UnauthorizedAccessException
PathTooLongException
-
SerialPort
public SerialPort(java.lang.String portName, int baudRate, Parity parity) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IOException
UnauthorizedAccessException
PathTooLongException
-
SerialPort
public SerialPort(java.lang.String portName, int baudRate, Parity parity, int dataBits) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IOException
UnauthorizedAccessException
PathTooLongException
-
SerialPort
public SerialPort(java.lang.String portName, int baudRate, Parity parity, int dataBits, StopBits stopBits) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
IOException
UnauthorizedAccessException
PathTooLongException
-
-
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 classComponent
- 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 classComponent
- 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 classComponent
- 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 classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SerialPort cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSerialPort
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SerialPort
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Read
public int Read(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
Read
public int Read(char[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
TimeoutException
-
ReadByte
public int ReadByte() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
ReadChar
public int ReadChar() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException, TimeoutException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, EndOfStreamException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
TimeoutException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
EndOfStreamException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
-
ReadExisting
public java.lang.String ReadExisting() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
ReadLine
public java.lang.String ReadLine() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, IOException, UnauthorizedAccessException, PathTooLongException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
IOException
UnauthorizedAccessException
PathTooLongException
TimeoutException
-
ReadTo
public java.lang.String ReadTo(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, IOException, UnauthorizedAccessException, PathTooLongException, TimeoutException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
IOException
UnauthorizedAccessException
PathTooLongException
TimeoutException
IndexOutOfRangeException
-
GetPortNames
public static java.lang.String[] GetPortNames() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, NullReferenceException, NotSupportedException, SecurityException, MissingMethodException, CultureNotFoundException, ObjectDisposedException, UnauthorizedAccessException, IOException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
NullReferenceException
NotSupportedException
SecurityException
MissingMethodException
CultureNotFoundException
ObjectDisposedException
UnauthorizedAccessException
IOException
InvalidOperationException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
-
DiscardInBuffer
public void DiscardInBuffer() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
DiscardOutBuffer
public void DiscardOutBuffer() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
Open
public void Open() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
MulticastNotSupportedException
-
Write
public void Write(byte[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NullReferenceException, IndexOutOfRangeException, EndOfStreamException, FormatException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
NullReferenceException
IndexOutOfRangeException
EndOfStreamException
FormatException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
TimeoutException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NullReferenceException, IndexOutOfRangeException, EndOfStreamException, FormatException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
NullReferenceException
IndexOutOfRangeException
EndOfStreamException
FormatException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
TimeoutException
-
Write
public void Write(char[] buffer, int offset, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, EndOfStreamException, FormatException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
EndOfStreamException
FormatException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
TimeoutException
-
Write
public void Write(java.lang.String text) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, NullReferenceException, IndexOutOfRangeException, EndOfStreamException, FormatException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
NullReferenceException
IndexOutOfRangeException
EndOfStreamException
FormatException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
TimeoutException
-
WriteLine
public void WriteLine(java.lang.String text) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, EndOfStreamException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, SemaphoreFullException, TimeoutException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
EndOfStreamException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
SemaphoreFullException
TimeoutException
-
getBreakState
public boolean getBreakState() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
setBreakState
public void setBreakState(boolean BreakState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getCDHolding
public boolean getCDHolding() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getCtsHolding
public boolean getCtsHolding() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getDiscardNull
public boolean getDiscardNull() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDiscardNull
public void setDiscardNull(boolean DiscardNull) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, FormatException, UnauthorizedAccessException, PathTooLongException
-
getDsrHolding
public boolean getDsrHolding() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getDtrEnable
public boolean getDtrEnable() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDtrEnable
public void setDtrEnable(boolean DtrEnable) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, FormatException, UnauthorizedAccessException, PathTooLongException
-
getIsOpen
public boolean getIsOpen() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRtsEnable
public boolean getRtsEnable() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
setRtsEnable
public void setRtsEnable(boolean RtsEnable) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, IndexOutOfRangeException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
IndexOutOfRangeException
UnauthorizedAccessException
PathTooLongException
-
getParityReplace
public byte getParityReplace() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setParityReplace
public void setParityReplace(byte ParityReplace) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, FormatException, UnauthorizedAccessException, PathTooLongException
-
getBaudRate
public int getBaudRate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBaudRate
public void setBaudRate(int BaudRate) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
IOException
UnauthorizedAccessException
PathTooLongException
-
getBytesToRead
public int getBytesToRead() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getBytesToWrite
public int getBytesToWrite() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getDataBits
public int getDataBits() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDataBits
public void setDataBits(int DataBits) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, IOException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
IOException
UnauthorizedAccessException
PathTooLongException
-
getReadBufferSize
public int getReadBufferSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReadBufferSize
public void setReadBufferSize(int ReadBufferSize) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
getReadTimeout
public int getReadTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReadTimeout
public void setReadTimeout(int ReadTimeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getReceivedBytesThreshold
public int getReceivedBytesThreshold() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReceivedBytesThreshold
public void setReceivedBytesThreshold(int ReceivedBytesThreshold) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getWriteBufferSize
public int getWriteBufferSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setWriteBufferSize
public void setWriteBufferSize(int WriteBufferSize) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
getWriteTimeout
public int getWriteTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setWriteTimeout
public void setWriteTimeout(int WriteTimeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getHandshake
public Handshake getHandshake() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHandshake
public void setHandshake(Handshake Handshake) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getParity
public Parity getParity() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setParity
public void setParity(Parity Parity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getStopBits
public StopBits getStopBits() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStopBits
public void setStopBits(StopBits StopBits) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IOException, FormatException, UnauthorizedAccessException, PathTooLongException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IOException
FormatException
UnauthorizedAccessException
PathTooLongException
-
getBaseStream
public Stream getBaseStream() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException
-
getNewLine
public java.lang.String getNewLine() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setNewLine
public void setNewLine(java.lang.String NewLine) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
getPortName
public java.lang.String getPortName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPortName
public void setPortName(java.lang.String PortName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
FormatException
-
getEncoding
public Encoding getEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setEncoding
public void setEncoding(Encoding Encoding) throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, ArgumentException, FormatException, InvalidOperationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException
-
addDataReceived
public void addDataReceived(SerialDataReceivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDataReceived
public void removeDataReceived(SerialDataReceivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addErrorReceived
public void addErrorReceived(SerialErrorReceivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeErrorReceived
public void removeErrorReceived(SerialErrorReceivedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addPinChanged
public void addPinChanged(SerialPinChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removePinChanged
public void removePinChanged(SerialPinChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-