55 * are ignored. 56 * 57 * @param b the byte to be written. 58 * @throws IOException if an I/O error occurs. 59 */ 60 void write(int b) throws IOException; 61 62 /** 63 * Writes to the output stream all the bytes in array <code>b</code>. 64 * If <code>b</code> is <code>null</code>, 65 * a <code>NullPointerException</code> is thrown. 66 * If <code>b.length</code> is zero, then 67 * no bytes are written. Otherwise, the byte 68 * <code>b[0]</code> is written first, then 69 * <code>b[1]</code>, and so on; the last byte 70 * written is <code>b[b.length-1]</code>. 71 * 72 * @param b the data. 73 * @throws IOException if an I/O error occurs. 74 */ 75 void write(byte b[]) throws IOException; 76 77 /** 78 * Writes <code>len</code> bytes from array 79 * <code>b</code>, in order, to 80 * the output stream. If <code>b</code> 81 * is <code>null</code>, a <code>NullPointerException</code> 82 * is thrown. If <code>off</code> is negative, 83 * or <code>len</code> is negative, or <code>off+len</code> 84 * is greater than the length of the array 85 * <code>b</code>, then an <code>IndexOutOfBoundsException</code> 86 * is thrown. If <code>len</code> is zero, 87 * then no bytes are written. Otherwise, the 88 * byte <code>b[off]</code> is written first, 89 * then <code>b[off+1]</code>, and so on; the 90 * last byte written is <code>b[off+len-1]</code>. 91 * 92 * @param b the data. 93 * @param off the start offset in the data. 94 * @param len the number of bytes to write. 95 * @throws IOException if an I/O error occurs. 96 */ 97 void write(byte b[], int off, int len) throws IOException; 98 99 /** 100 * Writes a <code>boolean</code> value to this output stream. 101 * If the argument <code>v</code> 102 * is <code>true</code>, the value <code>(byte)1</code> 103 * is written; if <code>v</code> is <code>false</code>, 104 * the value <code>(byte)0</code> is written. 105 * The byte written by this method may 106 * be read by the <code>readBoolean</code> 107 * method of interface <code>DataInput</code>, 108 * which will then return a <code>boolean</code> 109 * equal to <code>v</code>. 110 * 111 * @param v the boolean to be written. 112 * @throws IOException if an I/O error occurs. 113 */ 114 void writeBoolean(boolean v) throws IOException; 115 116 /** 117 * Writes to the output stream the eight low- | 55 * are ignored. 56 * 57 * @param b the byte to be written. 58 * @throws IOException if an I/O error occurs. 59 */ 60 void write(int b) throws IOException; 61 62 /** 63 * Writes to the output stream all the bytes in array <code>b</code>. 64 * If <code>b</code> is <code>null</code>, 65 * a <code>NullPointerException</code> is thrown. 66 * If <code>b.length</code> is zero, then 67 * no bytes are written. Otherwise, the byte 68 * <code>b[0]</code> is written first, then 69 * <code>b[1]</code>, and so on; the last byte 70 * written is <code>b[b.length-1]</code>. 71 * 72 * @param b the data. 73 * @throws IOException if an I/O error occurs. 74 */ 75 void write(byte[] b) throws IOException; 76 77 /** 78 * Writes <code>len</code> bytes from array 79 * <code>b</code>, in order, to 80 * the output stream. If <code>b</code> 81 * is <code>null</code>, a <code>NullPointerException</code> 82 * is thrown. If <code>off</code> is negative, 83 * or <code>len</code> is negative, or <code>off+len</code> 84 * is greater than the length of the array 85 * <code>b</code>, then an <code>IndexOutOfBoundsException</code> 86 * is thrown. If <code>len</code> is zero, 87 * then no bytes are written. Otherwise, the 88 * byte <code>b[off]</code> is written first, 89 * then <code>b[off+1]</code>, and so on; the 90 * last byte written is <code>b[off+len-1]</code>. 91 * 92 * @param b the data. 93 * @param off the start offset in the data. 94 * @param len the number of bytes to write. 95 * @throws IOException if an I/O error occurs. 96 */ 97 void write(byte[] b, int off, int len) throws IOException; 98 99 /** 100 * Writes a <code>boolean</code> value to this output stream. 101 * If the argument <code>v</code> 102 * is <code>true</code>, the value <code>(byte)1</code> 103 * is written; if <code>v</code> is <code>false</code>, 104 * the value <code>(byte)0</code> is written. 105 * The byte written by this method may 106 * be read by the <code>readBoolean</code> 107 * method of interface <code>DataInput</code>, 108 * which will then return a <code>boolean</code> 109 * equal to <code>v</code>. 110 * 111 * @param v the boolean to be written. 112 * @throws IOException if an I/O error occurs. 113 */ 114 void writeBoolean(boolean v) throws IOException; 115 116 /** 117 * Writes to the output stream the eight low- |