com.adobe.epubcheck.util.outWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epubcheck Show documentation
Show all versions of epubcheck Show documentation
EPUBCheck is a tool to validate the conformance of EPUB publications against
the EPUB specifications. EPUBCheck can be run as a standalone command-line tool or used
as a Java library.
package com.adobe.epubcheck.util;
public class outWriter
{
static boolean isQuiet = false;
public outWriter(){}
public static void setQuiet(boolean isQuiet)
{
outWriter.isQuiet = isQuiet;
}
public static boolean isQuiet()
{
return isQuiet;
}
public static void printf(String format, Object...args)
{
if (!isQuiet())
{
System.out.printf(format, args);
}
}
public static void println(Object x)
{
if (!isQuiet())
{
System.out.println(x);
}
}
public static void println(String x)
{
if (!isQuiet())
{
System.out.println(x);
}
}
public static void println()
{
System.out.println();
}
public static void print(String s)
{
System.out.print(s);
}
public static void flush()
{
System.out.flush();
}
}