/** * 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); }
public void readFully(final byte[] b) throws IOException { Marshalling.readFully(this, b); }
public void readFully(final byte[] b, final int off, final int len) throws IOException { Marshalling.readFully(this, b, off, len); }
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) + ")"); } }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
public void readFully(final byte[] b) throws IOException { Marshalling.readFully(this, b); }
/** * 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); }
public void readFully(final byte[] b) throws IOException { Marshalling.readFully(this, b); }
public void readFully(final byte[] b, final int off, final int len) throws IOException { Marshalling.readFully(this, b, off, len); }
public void readFully(final byte[] b) throws IOException { Marshalling.readFully(this, b); }
public void readFully(final byte[] b, final int off, final int len) throws IOException { Marshalling.readFully(this, b, off, len); }
public void readFully(final byte[] b, final int off, final int len) throws IOException { Marshalling.readFully(this, b, off, len); }
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) + ")"); } }
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) + ")"); } }
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) + ")"); } }
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) + ")"); } }
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) + ")"); } }