Package org.jparsec.examples.common
Class IoUtils
- java.lang.Object
-
- org.jparsec.examples.common.IoUtils
-
public final class IoUtils extends java.lang.ObjectCommon 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 voidcopy(java.lang.Readable from, java.lang.Appendable to)Copies all content fromfromtoto.static java.lang.Stringread(java.lang.Readable readable)Reads all characters fromreadable.static java.lang.Stringread(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.IOExceptionReads all characters fromreadable.- Throws:
java.io.IOException
-
copy
public static void copy(java.lang.Readable from, java.lang.Appendable to) throws java.io.IOExceptionCopies all content fromfromtoto.- Throws:
java.io.IOException
-
-