Java OutputStream Write writeStreamCharwise(final Reader in, final Writer out)

Here you can find the source of writeStreamCharwise(final Reader in, final Writer out)

Description

write Stream Charwise

License

Open Source License

Declaration

public static void writeStreamCharwise(final Reader in, final Writer out) throws IOException 

Method Source Code

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

import java.io.IOException;

import java.io.Reader;
import java.io.Writer;

public class Main {
    public static void writeStreamCharwise(final Reader in, final Writer out) throws IOException {
        for (int read; (read = in.read()) != -1;) {
            out.write(read);/*from   w  ww .j av a  2 s  .  c  o  m*/
        }
    }
}

Related

  1. writeStream(OutputStream out, byte[] data)
  2. writeStream(OutputStream output, String dataStr)
  3. writeStream(OutputStream outputStream, InputStream inputStream, byte[] buffer)
  4. writeStream(String content, String charset, OutputStream outputStream)
  5. writeStreamBuffered(final Reader in, final Writer out)
  6. writeStreamCharwiseLimited(final Reader in, final Writer out, final int len)
  7. writeStreamFromString(String contents, OutputStream outputStream)
  8. writeStreamFromString(String serializePath)
  9. writeStreamInFile(File f, InputStream in)