Code example for DataOutputStream

Methods: writeChars

0
        dos.writeBytes(string);
    } 
 
    @Override 
    public void writeChars(String string) throws IOException {
        dos.writeChars(string);
    } 
 
    @Override 
    public void writeUTF(String string) throws IOException {
        dos.writeUTF(string);
    } 
 
    @Override 
    public void flush() throws IOException { 
        dos.flush();
    } 
 
    @Override 
    public void close() throws IOException { 
Connect your IDE to all the code out there  Get Codota for Java