Package com.g2forge.alexandria.java.io
Class HTextIO
- java.lang.Object
-
- com.g2forge.alexandria.java.io.HTextIO
-
public final class HTextIO extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isEqual(InputStream... streams)
static boolean
isEqual(Collection<? extends InputStream> streams)
static List<String>
readAll(InputStream stream)
static String
readAll(InputStream stream, boolean newline)
Read the contents of a input stream into a string.
-
-
-
Method Detail
-
readAll
public static String readAll(InputStream stream, boolean newline)
Read the contents of a input stream into a string. This method will close the stream when it is done.- Parameters:
stream
- The input stream to read.newline
-true
will translate newlines from system format to\n
- Returns:
- The contents of the input stream.
-
readAll
public static List<String> readAll(InputStream stream)
-
isEqual
public static boolean isEqual(InputStream... streams)
-
isEqual
public static boolean isEqual(Collection<? extends InputStream> streams)
-
-