Package org.jparsec.examples.common
Class IoUtils
- java.lang.Object
-
- org.jparsec.examples.common.IoUtils
-
public final class IoUtils extends java.lang.Object
Common utilities for working with io.
-
-
Constructor Summary
Constructors Constructor Description IoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copy(java.lang.Readable from, java.lang.Appendable to)
Copies all content fromfrom
toto
.static java.lang.String
read(java.lang.Readable readable)
Reads all characters fromreadable
.static java.lang.String
read(java.net.URL url)
-
-
-
Method Detail
-
read
public static java.lang.String read(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public static java.lang.String read(java.lang.Readable readable) throws java.io.IOException
Reads all characters fromreadable
.- Throws:
java.io.IOException
-
copy
public static void copy(java.lang.Readable from, java.lang.Appendable to) throws java.io.IOException
Copies all content fromfrom
toto
.- Throws:
java.io.IOException
-
-