org.jboss.marshalling.Marshalling.readFully()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.jboss.marshalling.Marshalling.readFully()方法的一些代码示例,展示了Marshalling.readFully()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marshalling.readFully()方法的具体详情如下:
包路径:org.jboss.marshalling.Marshalling
类名称:Marshalling
方法名:readFully

Marshalling.readFully介绍

[英]Read bytes from a ByteInput. Fully fills in the array.
[中]从字节输入读取字节。完全填充数组。

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: wildfly/wildfly

public void readFully(final byte[] b) throws IOException {
  Marshalling.readFully(this, b);
}

代码示例来源:origin: wildfly/wildfly

public void readFully(final byte[] b, final int off, final int len) throws IOException {
  Marshalling.readFully(this, b, off, len);
}

代码示例来源:origin: wildfly/wildfly

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

public void readFully(final byte[] b) throws IOException {
  Marshalling.readFully(this, b);
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

/**
 * Read bytes from a {@code ByteInput}.  Fully fills in the array.
 *
 * @param input the input
 * @param dest the destination
 * @throws EOFException if the end of file is reached before the array is filled
 * @throws IOException if an I/O error occurs
 */
public static void readFully(ByteInput input, byte[] dest) throws IOException {
  readFully(input, dest, 0, dest.length);
}

代码示例来源:origin: org.jboss.marshalling/river

public void readFully(final byte[] b) throws IOException {
  Marshalling.readFully(this, b);
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

public void readFully(final byte[] b, final int off, final int len) throws IOException {
  Marshalling.readFully(this, b, off, len);
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

public void readFully(final byte[] b) throws IOException {
  Marshalling.readFully(this, b);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public void readFully(final byte[] b, final int off, final int len) throws IOException {
  Marshalling.readFully(this, b, off, len);
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

public void readFully(final byte[] b, final int off, final int len) throws IOException {
  Marshalling.readFully(this, b, off, len);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

代码示例来源:origin: org.jboss.marshalling/jboss-marshalling-osgi

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

代码示例来源:origin: jboss-remoting/jboss-marshalling

public void readHeader(final ByteInput input) throws IOException {
  final byte[] buf = new byte[headerBytes.length];
  readFully(input, buf);
  if (! Arrays.equals(buf, headerBytes)) {
    throw new StreamCorruptedException("Header is incorrect (expected " + Arrays.toString(headerBytes) + ", got " + Arrays.toString(buf) + ")");
  }
}

相关文章