public void writeChars(String s) { try { dataOutput.writeChars(s); } catch (IOException ex) { throw new RuntimeException(ex.getMessage()); } }