本文整理了Java中java.io.RandomAccessFile.readBoolean
方法的一些代码示例,展示了RandomAccessFile.readBoolean
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RandomAccessFile.readBoolean
方法的具体详情如下:
包路径:java.io.RandomAccessFile
类名称:RandomAccessFile
方法名:readBoolean
[英]Reads a boolean from the current position in this file. Blocks until one byte has been read, the end of the file is reached or an exception is thrown.
[中]从文件中的当前位置读取布尔值。块,直到读取一个字节、到达文件结尾或引发异常为止。
代码示例来源:origin: apache/activemq
@Override
public boolean readBoolean() throws IOException {
try {
return getRaf().readBoolean();
} catch (IOException ioe) {
handleException();
throw ioe;
}
}
代码示例来源:origin: i2p/i2p.i2p
public boolean readBoolean() throws IOException { return delegate.readBoolean(); }
public byte readByte() throws IOException { return delegate.readByte(); }
代码示例来源:origin: geotools/geotools
boolean isNull = raf.readBoolean();
if (isNull) {
return null;
Class<?> binding = ad.getType().getBinding();
if (binding == Boolean.class) {
return raf.readBoolean();
} else if (binding == Byte.class || binding == byte.class) {
return raf.readByte();
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.vfs
public boolean readBoolean() throws IOException
{
return raf.readBoolean();
}
代码示例来源:origin: cc.plural/jsonij
@Override
public final boolean readBoolean() throws IOException {
return randomAccessFile.readBoolean();
}
代码示例来源:origin: com.github.abashev/commons-vfs2
@Override
public boolean readBoolean() throws IOException {
return raf.readBoolean();
}
代码示例来源:origin: apache/commons-vfs
@Override
public boolean readBoolean() throws IOException {
return raf.readBoolean();
}
代码示例来源:origin: org.openmicroscopy/ome-common
@Override
public boolean readBoolean() throws IOException {
return raf.readBoolean();
}
代码示例来源:origin: topjohnwu/libsu
@Override
public boolean readBoolean() throws IOException {
return raf.readBoolean();
}
代码示例来源:origin: scifio/scifio
@Override
public boolean readBoolean() throws IOException {
return raf.readBoolean();
}
代码示例来源:origin: org.jetbrains.intellij.deps/commons-vfs2
@Override
public boolean readBoolean() throws IOException
{
return raf.readBoolean();
}
代码示例来源:origin: com.github.yannrichet/JMathIO
public final boolean readBoolean() throws IOException {
return r.readBoolean();
}
代码示例来源:origin: org.scijava/scijava-common
@Override
public boolean readBoolean() throws IOException {
return reader().readBoolean();
}
代码示例来源:origin: scijava/scijava-common
@Override
public boolean readBoolean() throws IOException {
return reader().readBoolean();
}
代码示例来源:origin: org.onosproject/onlab-thirdparty
@Override
public boolean readBoolean(long offset) {
checkRead(offset, BOOLEAN);
try {
seekToOffset(offset);
return randomAccessFile.readBoolean();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: io.atomix/catalyst-buffer
@Override
public boolean readBoolean(long offset) {
checkRead(offset, BOOLEAN);
try {
seekToOffset(offset);
return randomAccessFile.readBoolean();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.apache.activemq/activemq-all
@Override
public boolean readBoolean() throws IOException {
try {
return getRaf().readBoolean();
} catch (IOException ioe) {
handleException();
throw ioe;
}
}
代码示例来源:origin: org.apache.activemq/activemq-kahadb-store
@Override
public boolean readBoolean() throws IOException {
try {
return getRaf().readBoolean();
} catch (IOException ioe) {
handleException();
throw ioe;
}
}
代码示例来源:origin: org.apache.activemq/activemq-osgi
@Override
public boolean readBoolean() throws IOException {
try {
return getRaf().readBoolean();
} catch (IOException ioe) {
handleException();
throw ioe;
}
}
代码示例来源:origin: octo-online/reactive-audit
@Test(expected = FileReactiveAuditException.class)
public void readBoolean()
throws IOException
{
ReactiveAudit.off.commit();
try (RandomAccessFile rw = newRandomAccessFile())
{
TestTools.strict.commit();
rw.readBoolean();
}
}
内容来源于网络,如有侵权,请联系作者删除!