org.codehaus.jparsec.examples.common
Class IoUtils

java.lang.Object
  extended by org.codehaus.jparsec.examples.common.IoUtils

public final class IoUtils
extends Object

Common utilities for working with io.

Author:
Ben Yu

Constructor Summary
IoUtils()
           
 
Method Summary
static void copy(Readable from, Appendable to)
          Copies all content from from to to.
static String read(Readable readable)
          Reads all characters from readable.
static String read(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoUtils

public IoUtils()
Method Detail

read

public static String read(URL url)
                   throws IOException
Throws:
IOException

read

public static String read(Readable readable)
                   throws IOException
Reads all characters from readable.

Throws:
IOException

copy

public static void copy(Readable from,
                        Appendable to)
                 throws IOException
Copies all content from from to to.

Throws:
IOException


Copyright © 2014. All rights reserved.