/** * Construct a new ChannelDescriptor with the given channel, file number, * and file descriptor object. The channel will be kept open until all ChannelDescriptor * references to it have been closed. The channel's capabilities will be used * to determine the "original" set of mode flags. * * @param channel The channel for the new descriptor * @param fileDescriptor The java.io.FileDescriptor object for the new descriptor */ public ChannelDescriptor(Channel channel, FileDescriptor fileDescriptor) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), fileDescriptor); }
/** * Construct a new ChannelDescriptor with the given channel, file number, * and file descriptor object. The channel will be kept open until all ChannelDescriptor * references to it have been closed. The channel's capabilities will be used * to determine the "original" set of mode flags. * * @param channel The channel for the new descriptor * @param fileDescriptor The java.io.FileDescriptor object for the new descriptor */ public ChannelDescriptor(Channel channel, FileDescriptor fileDescriptor) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), fileDescriptor); }
@Deprecated public ChannelDescriptor(Channel channel, int fileno, FileDescriptor fileDescriptor) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), fileDescriptor); }
@Deprecated public ChannelDescriptor(Channel channel, int fileno, FileDescriptor fileDescriptor) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), fileDescriptor); }
/** * Construct a new ChannelDescriptor with the given channel, file number, * and file descriptor object. The channel will be kept open until all ChannelDescriptor * references to it have been closed. The channel's capabilities will be used * to determine the "original" set of mode flags. This version generates a * new fileno. * * @param channel The channel for the new descriptor */ public ChannelDescriptor(Channel channel) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), FilenoUtil.getDescriptorFromChannel(channel)); }
/** * Construct a new ChannelDescriptor with the given channel, file number, * and file descriptor object. The channel will be kept open until all ChannelDescriptor * references to it have been closed. The channel's capabilities will be used * to determine the "original" set of mode flags. This version generates a * new fileno. * * @param channel The channel for the new descriptor */ public ChannelDescriptor(Channel channel) throws InvalidValueException { this(channel, ModeFlags.getModesFromChannel(channel), FilenoUtil.getDescriptorFromChannel(channel)); }