/** * Writes a character given its 31-bits Unicode. * * @param code the 31 bits Unicode of the character to be written. * @throws IOException if an I/O error occurs. */ @Override public void write(int code) throws IOException { if ((code & 0xffffff80) == 0) { _bytes[_index] = (byte) code; if (++_index >= _bytes.length) { flushBuffer(); } } else { // Writes more than one byte. write2(code); } }
/** * Writes a character given its 31-bits Unicode. * * @param code the 31 bits Unicode of the character to be written. * @throws IOException if an I/O error occurs. */ @Override public void write(int code) throws IOException { if ((code & 0xffffff80) == 0) { _bytes[_index] = (byte) code; if (++_index >= _bytes.length) { flushBuffer(); } } else { // Writes more than one byte. write2(code); } }
/** * Writes a character given its 31-bits Unicode. * * @param code the 31 bits Unicode of the character to be written. * @throws IOException if an I/O error occurs. */ @Override public void write(int code) throws IOException { if ((code & 0xffffff80) == 0) { _bytes[_index] = (byte) code; if (++_index >= _bytes.length) { flushBuffer(); } } else { // Writes more than one byte. write2(code); } }
/** * Writes a character given its 31-bits Unicode. * * @param code the 31 bits Unicode of the character to be written. * @throws IOException if an I/O error occurs. */ @Override public void write(int code) throws IOException { if ((code & 0xffffff80) == 0) { _bytes[_index] = (byte) code; if (++_index >= _bytes.length) { flushBuffer(); } } else { // Writes more than one byte. write2(code); } }
/** * Writes a character given its 31-bits Unicode. * * @param code the 31 bits Unicode of the character to be written. * @throws IOException if an I/O error occurs. */ @Override public void write(int code) throws IOException { if ((code & 0xffffff80) == 0) { _bytes[_index] = (byte) code; if (++_index >= _bytes.length) { flushBuffer(); } } else { // Writes more than one byte. write2(code); } }