public class io.netty.channel.rxtx.RxtxChannel extends io.netty.channel.oio.OioByteStreamChannel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.channel.rxtx.RxtxChannel
super_class: io.netty.channel.oio.OioByteStreamChannel
{
private static final io.netty.channel.rxtx.RxtxDeviceAddress LOCAL_ADDRESS;
descriptor: Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.netty.channel.rxtx.RxtxChannelConfig config;
descriptor: Lio/netty/channel/rxtx/RxtxChannelConfig;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean open;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.netty.channel.rxtx.RxtxDeviceAddress deviceAddress;
descriptor: Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x0002) ACC_PRIVATE
private gnu.io.SerialPort serialPort;
descriptor: Lgnu/io/SerialPort;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new io.netty.channel.rxtx.RxtxDeviceAddress
dup
ldc "localhost"
invokespecial io.netty.channel.rxtx.RxtxDeviceAddress.<init>:(Ljava/lang/String;)V
putstatic io.netty.channel.rxtx.RxtxChannel.LOCAL_ADDRESS:Lio/netty/channel/rxtx/RxtxDeviceAddress;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokespecial io.netty.channel.oio.OioByteStreamChannel.<init>:(Lio/netty/channel/Channel;)V
1: aload 0
iconst_1
putfield io.netty.channel.rxtx.RxtxChannel.open:Z
2: aload 0
new io.netty.channel.rxtx.DefaultRxtxChannelConfig
dup
aload 0
invokespecial io.netty.channel.rxtx.DefaultRxtxChannelConfig.<init>:(Lio/netty/channel/rxtx/RxtxChannel;)V
putfield io.netty.channel.rxtx.RxtxChannel.config:Lio/netty/channel/rxtx/RxtxChannelConfig;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/rxtx/RxtxChannel;
public io.netty.channel.rxtx.RxtxChannelConfig config();
descriptor: ()Lio/netty/channel/rxtx/RxtxChannelConfig;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.config:Lio/netty/channel/rxtx/RxtxChannelConfig;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
public boolean isOpen();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.open:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected io.netty.channel.AbstractChannel$AbstractUnsafe newUnsafe();
descriptor: ()Lio/netty/channel/AbstractChannel$AbstractUnsafe;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.netty.channel.rxtx.RxtxChannel$RxtxUnsafe
dup
aload 0
invokespecial io.netty.channel.rxtx.RxtxChannel$RxtxUnsafe.<init>:(Lio/netty/channel/rxtx/RxtxChannel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected void doConnect(java.net.SocketAddress, java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;Ljava/net/SocketAddress;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast io.netty.channel.rxtx.RxtxDeviceAddress
astore 3
start local 3 1: aload 3
invokevirtual io.netty.channel.rxtx.RxtxDeviceAddress.value:()Ljava/lang/String;
invokestatic gnu.io.CommPortIdentifier.getPortIdentifier:(Ljava/lang/String;)Lgnu/io/CommPortIdentifier;
astore 4
start local 4 2: aload 4
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
sipush 1000
invokevirtual gnu.io.CommPortIdentifier.open:(Ljava/lang/String;I)Lgnu/io/CommPort;
astore 5
start local 5 3: aload 5
aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.READ_TIMEOUT:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual gnu.io.CommPort.enableReceiveTimeout:(I)V
4: aload 0
aload 3
putfield io.netty.channel.rxtx.RxtxChannel.deviceAddress:Lio/netty/channel/rxtx/RxtxDeviceAddress;
5: aload 0
aload 5
checkcast gnu.io.SerialPort
putfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
6: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/channel/rxtx/RxtxChannel;
0 7 1 remoteAddress Ljava/net/SocketAddress;
0 7 2 localAddress Ljava/net/SocketAddress;
1 7 3 remote Lio/netty/channel/rxtx/RxtxDeviceAddress;
2 7 4 cpi Lgnu/io/CommPortIdentifier;
3 7 5 commPort Lgnu/io/CommPort;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
remoteAddress
localAddress
protected void doInit();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
1: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.BAUD_RATE:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
2: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.DATA_BITS:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast io.netty.channel.rxtx.RxtxChannelConfig$Databits
invokevirtual io.netty.channel.rxtx.RxtxChannelConfig$Databits.value:()I
3: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.STOP_BITS:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast io.netty.channel.rxtx.RxtxChannelConfig$Stopbits
invokevirtual io.netty.channel.rxtx.RxtxChannelConfig$Stopbits.value:()I
4: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.PARITY_BIT:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast io.netty.channel.rxtx.RxtxChannelConfig$Paritybit
invokevirtual io.netty.channel.rxtx.RxtxChannelConfig$Paritybit.value:()I
5: invokevirtual gnu.io.SerialPort.setSerialPortParams:(IIII)V
6: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.DTR:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual gnu.io.SerialPort.setDTR:(Z)V
7: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
getstatic io.netty.channel.rxtx.RxtxChannelOption.RTS:Lio/netty/channel/ChannelOption;
invokeinterface io.netty.channel.rxtx.RxtxChannelConfig.getOption:(Lio/netty/channel/ChannelOption;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual gnu.io.SerialPort.setRTS:(Z)V
8: aload 0
aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.getInputStream:()Ljava/io/InputStream;
aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.getOutputStream:()Ljava/io/OutputStream;
invokevirtual io.netty.channel.rxtx.RxtxChannel.activate:(Ljava/io/InputStream;Ljava/io/OutputStream;)V
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/channel/rxtx/RxtxChannel;
Exceptions:
throws java.lang.Exception
public io.netty.channel.rxtx.RxtxDeviceAddress localAddress();
descriptor: ()Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.channel.oio.OioByteStreamChannel.localAddress:()Ljava/net/SocketAddress;
checkcast io.netty.channel.rxtx.RxtxDeviceAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
public io.netty.channel.rxtx.RxtxDeviceAddress remoteAddress();
descriptor: ()Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.channel.oio.OioByteStreamChannel.remoteAddress:()Ljava/net/SocketAddress;
checkcast io.netty.channel.rxtx.RxtxDeviceAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected io.netty.channel.rxtx.RxtxDeviceAddress localAddress0();
descriptor: ()Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic io.netty.channel.rxtx.RxtxChannel.LOCAL_ADDRESS:Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected io.netty.channel.rxtx.RxtxDeviceAddress remoteAddress0();
descriptor: ()Lio/netty/channel/rxtx/RxtxDeviceAddress;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.deviceAddress:Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected void doBind(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
0 1 1 localAddress Ljava/net/SocketAddress;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
localAddress
protected void doDisconnect();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.doClose:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/rxtx/RxtxChannel;
Exceptions:
throws java.lang.Exception
protected void doClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_0
putfield io.netty.channel.rxtx.RxtxChannel.open:Z
1: aload 0
invokespecial io.netty.channel.oio.OioByteStreamChannel.doClose:()V
2: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
ifnull 8
5: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.removeEventListener:()V
6: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.close:()V
7: aload 0
aconst_null
putfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
8: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
ifnull 13
10: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.removeEventListener:()V
11: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
invokevirtual gnu.io.SerialPort.close:()V
12: aload 0
aconst_null
putfield io.netty.channel.rxtx.RxtxChannel.serialPort:Lgnu/io/SerialPort;
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/netty/channel/rxtx/RxtxChannel;
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.lang.Exception
protected boolean isInputShutdown();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.rxtx.RxtxChannel.open:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected io.netty.channel.ChannelFuture shutdownInput();
descriptor: ()Lio/netty/channel/ChannelFuture;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.UnsupportedOperationException
dup
ldc "shutdownInput"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
invokevirtual io.netty.channel.rxtx.RxtxChannel.newFailedFuture:(Ljava/lang/Throwable;)Lio/netty/channel/ChannelFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/rxtx/RxtxChannel;
protected java.net.SocketAddress localAddress0();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.localAddress0:()Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.netty.channel.ChannelConfig config();
descriptor: ()Lio/netty/channel/ChannelConfig;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.config:()Lio/netty/channel/rxtx/RxtxChannelConfig;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.SocketAddress localAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.localAddress:()Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
LocalVariableTable:
Start End Slot Name Signature
protected java.net.SocketAddress remoteAddress0();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.remoteAddress0:()Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.net.SocketAddress remoteAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.channel.rxtx.RxtxChannel.remoteAddress:()Lio/netty/channel/rxtx/RxtxDeviceAddress;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RxtxChannel.java"
NestMembers:
io.netty.channel.rxtx.RxtxChannel$RxtxUnsafe io.netty.channel.rxtx.RxtxChannel$RxtxUnsafe$1
InnerClasses:
protected abstract AbstractUnsafe = io.netty.channel.AbstractChannel$AbstractUnsafe of io.netty.channel.AbstractChannel
private final RxtxUnsafe = io.netty.channel.rxtx.RxtxChannel$RxtxUnsafe of io.netty.channel.rxtx.RxtxChannel
public final Databits = io.netty.channel.rxtx.RxtxChannelConfig$Databits of io.netty.channel.rxtx.RxtxChannelConfig
public final Paritybit = io.netty.channel.rxtx.RxtxChannelConfig$Paritybit of io.netty.channel.rxtx.RxtxChannelConfig
public final Stopbits = io.netty.channel.rxtx.RxtxChannelConfig$Stopbits of io.netty.channel.rxtx.RxtxChannelConfig
RuntimeVisibleAnnotations:
java.lang.Deprecated()