public class SystemOutUtils extends Object
Constructor and Description |
---|
SystemOutUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
print(List<String> lines)
Prints the lines to the
System.out . |
static void |
print(List<String> lines,
File outputFile)
Writes the list of lines to a file.
|
static void |
print(List<String> lines,
PrintStream stream)
Prints the lines to a
PrintStream . |
static void |
printProperties(Properties p)
Print properties to System.out.
|
static void |
printProperties(String title,
Properties p)
Print properties to System.out.
|
static void |
printTypes(List<?> elements)
Prints the list of generic elements to the
System.out . |
static void |
printTypes(List<?> elements,
PrintStream stream)
Prints the list of generic elements to a
PrintStream . |
static void |
printTypes(Object[] elements)
Prints the list of generic elements to the
System.out . |
static void |
printTypes(Object[] elements,
PrintStream stream)
Prints the list of generic elements to a
PrintStream . |
public static void printTypes(List<?> elements)
System.out
.elements
- the list of elements.System.out
public static void printTypes(List<?> elements, PrintStream stream)
PrintStream
.elements
- the list of elements.stream
- the print streampublic static void printTypes(Object[] elements)
System.out
.elements
- the list of elements.System.out
public static void printTypes(Object[] elements, PrintStream stream)
PrintStream
.elements
- the list of elements.stream
- the print streampublic static void print(List<String> lines)
System.out
.lines
- the list of lines.System.out
public static void print(List<String> lines, PrintStream stream)
PrintStream
.lines
- the list of lines.stream
- the printstream.PrintStream.println(String)
public static void print(List<String> lines, File outputFile) throws IOException
lines
- the list of lines.outputFile
- the output fileIOException
- if any exceptions occurs.public static void printProperties(String title, Properties p)
title
- the propertiesp
- the title of the propertiespublic static void printProperties(Properties p)
p
- the properties