本文整理了Java中java.nio.channels.SocketChannel.shutdownInput()
方法的一些代码示例,展示了SocketChannel.shutdownInput()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SocketChannel.shutdownInput()
方法的具体详情如下:
包路径:java.nio.channels.SocketChannel
类名称:SocketChannel
方法名:shutdownInput
暂无
代码示例来源:origin: apache/nifi
public void consume() throws IOException {
channel.shutdownInput();
final byte[] b = new byte[4096];
final ByteBuffer buffer = ByteBuffer.wrap(b);
int bytesRead;
do {
bytesRead = channel.read(buffer);
buffer.flip();
} while (bytesRead > 0);
}
代码示例来源:origin: apache/nifi
public void consume() throws IOException {
channel.shutdownInput();
final byte[] b = new byte[4096];
final ByteBuffer buffer = ByteBuffer.wrap(b);
int readCount;
do {
readCount = channel.read(buffer);
buffer.flip();
} while (readCount > 0);
}
代码示例来源:origin: netty/netty
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: redisson/redisson
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: wildfly/wildfly
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: undera/jmeter-plugins
@Override
public SocketChannel shutdownInput() throws IOException {
return socketChannel.shutdownInput();
}
代码示例来源:origin: kg.apc/jmeter-plugins-common-io
@Override
public SocketChannel shutdownInput() throws IOException {
return socketChannel.shutdownInput();
}
代码示例来源:origin: worstcase/gumshoe
public SocketChannel shutdownInput() throws IOException {
return wrap(delegate.shutdownInput());
}
代码示例来源:origin: jitsi/ice4j
/**
* {@inheritDoc}
*
* Forwards to {@link #delegate} and returns {@code this}.
*/
@Override
public SocketChannel shutdownInput()
throws IOException
{
delegate.shutdownInput();
return this;
}
代码示例来源:origin: org.apache.nifi/nifi-security-utils
public void consume() throws IOException {
channel.shutdownInput();
final byte[] b = new byte[4096];
final ByteBuffer buffer = ByteBuffer.wrap(b);
int readCount;
do {
readCount = channel.read(buffer);
buffer.flip();
} while (readCount > 0);
}
代码示例来源:origin: org.apache.nifi/nifi-utils
public void consume() throws IOException {
channel.shutdownInput();
final byte[] b = new byte[4096];
final ByteBuffer buffer = ByteBuffer.wrap(b);
int bytesRead;
do {
bytesRead = channel.read(buffer);
buffer.flip();
} while (bytesRead > 0);
}
代码示例来源:origin: apache/activemq-artemis
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: apache/activemq-artemis
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: com.aliyun.openservices/ons-client
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: com.datastax.oss/java-driver-core-shaded
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
代码示例来源:origin: org.apache.ratis/ratis-proto-shaded
private void shutdownInput0() throws Exception {
if (PlatformDependent.javaVersion() >= 7) {
javaChannel().shutdownInput();
} else {
javaChannel().socket().shutdownInput();
}
}
内容来源于网络,如有侵权,请联系作者删除!