Java OutputStream Write String WriteString(OutputStream output, String string)

Here you can find the source of WriteString(OutputStream output, String string)

Description

Write String

License

Open Source License

Declaration

static void WriteString(OutputStream output, String string) 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 {
    static void WriteString(OutputStream output, String string) throws IOException {
        for (int loop = 0; loop < string.length(); ++loop)
            output.write((byte) (string.charAt(loop)));
    }//from  w w w . j  a  v a  2s  . c  o m
}

Related

  1. writeString(OutputStream out, String s)
  2. writeString(OutputStream out, String s)
  3. writeString(OutputStream out, String s)
  4. writeString(OutputStream out, String str)
  5. writeString(OutputStream out, String str)
  6. writeString(OutputStream output, String string)
  7. writeString(String data, int length, OutputStream out)
  8. writeString(String s, OutputStream out)
  9. writeString(String str, ObjectOutputStream dos)