本文整理了Java中java.io.ObjectInputStream.skipBytes()
方法的一些代码示例,展示了ObjectInputStream.skipBytes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.skipBytes()
方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:skipBytes
[英]Skips length bytes on the source stream. This method should not be used to skip bytes at any arbitrary position, just when reading primitive data types (int, char etc).
[中]跳过源流上的长度字节。此方法不应仅在读取基本数据类型(int、char等)时,用于跳过任意位置的字节。
代码示例来源:origin: redisson/redisson
@Override
public int skipBytes(int len) throws IOException {
return wrapped.skipBytes(len);
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public int skipBytes(int n) throws IOException {
return ois.skipBytes(n);
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override public int skipBytes(int n) throws IOException {
return ois.skipBytes(n);
}
代码示例来源:origin: wildfly/wildfly
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: RuedigerMoeller/fast-serialization
@Override
public int skipBytes(int len) throws IOException {
return wrapped.skipBytes(len);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: babyfish-ct/babyfish
@Override
public int skipBytes(int n) throws IOException {
return this.raw.skipBytes(n);
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public int skipBytes(int n) throws IOException {
return ois.skipBytes(n);
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** {@inheritDoc} */
@Override public int skipBytes(int n) throws IOException {
return ois.skipBytes(n);
}
代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: jboss-remoting/jboss-marshalling
/** {@inheritDoc} */
public int skipBytes(final int len) throws IOException {
return ois.skipBytes(len);
}
代码示例来源:origin: org.cojen/dirmi
public int skipBytes(int n) throws IOException {
return mIn.skipBytes(n);
}
代码示例来源:origin: stackoverflow.com
private static String getVariable(oracle.sql.BLOB blob, String name) throws Exception {
ObjectInputStream ois = new ObjectInputStream(blob.getBinaryStream());
try {
ois.skipBytes(variablesOffset);
//noinspection unchecked
return ((HashMap<String, String>) ois.readObject()).get(name);
} finally {
ois.close();
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
void skipBytes(int len)
{
try
{
is.skipBytes(len);
}
catch (Exception e)
{
throw wrapper.javaSerializationException(e, "skipBytes");
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
void skipBytes(int len)
{
try
{
is.skipBytes(len);
}
catch (Exception e)
{
throw wrapper.javaSerializationException(e, "skipBytes");
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
void skipBytes(int len) {
try {
is.skipBytes(len);
} catch (Exception e) {
throw wrapper.javaSerializationException(e, "skipBytes");
}
}
内容来源于网络,如有侵权,请联系作者删除!