/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ @Override public void readFully( final byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** @see java.io.DataInput#readFully(byte[]) */ public void readFully( byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
@Test public void testReadFully() throws IOException { final byte[] bytesIn = new byte[8]; this.sdis.readFully(bytesIn); for( int i=0; i<8; i++) { assertEquals( bytes[i], bytesIn[i] ); } }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ public void readFully( byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ public void readFully( byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ public void readFully( byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ public void readFully( byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ public void readFully( final byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }
/** * Invokes the delegate's <code>read(byte[] data, int, int)</code> method. * * @param data the buffer to read the bytes into * @throws EOFException if an end of file is reached unexpectedly * @throws IOException if an I/O error occurs */ @Override public void readFully( final byte[] data ) throws IOException, EOFException { readFully( data, 0, data.length ); }