Java OutputStream Write String writeString(OutputStream out, String s)

Here you can find the source of writeString(OutputStream out, String s)

Description

write String

License

Open Source License

Declaration

public static void writeString(OutputStream out, String s) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.io.OutputStream;

public class Main {
    public static void writeString(OutputStream out, String s) throws IOException {
        byte[] b = s.getBytes();
        out.write(b, 0, b.length);//from  ww  w.jav  a 2s . com
    }
}

Related

  1. writeString(OutputStream os, String s)
  2. writeString(OutputStream os, String str)
  3. writeString(OutputStream os, String text)
  4. writeString(OutputStream out, String s)
  5. writeString(OutputStream out, String s)
  6. writeString(OutputStream out, String s)
  7. writeString(OutputStream out, String s)
  8. writeString(OutputStream out, String s)
  9. writeString(OutputStream out, String str)