程序包 proguard.util
类 PrintWriterUtil
- java.lang.Object
-
- proguard.util.PrintWriterUtil
-
public class PrintWriterUtil extends java.lang.ObjectUtility code for creating PrintWriters for printing mappings etc.
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidclosePrintWriter(java.io.File file, java.io.PrintWriter printWriter)Closes the given print writer, or flushes it if is the standard output.static java.io.PrintWritercreatePrintWriter(java.io.File outputFile, java.io.PrintWriter console)Returns a print writer for the given file, or the standard output if the file name is empty.static java.io.PrintWritercreatePrintWriter(java.io.File outputFile, java.io.PrintWriter console, boolean append)Returns a print writer for the given file, or the standard output if the file name is empty.static java.io.PrintWritercreatePrintWriterErr(java.io.File outputFile)Returns a print writer for the given file, or the standard output if the file name is empty.static java.io.PrintWritercreatePrintWriterOut(java.io.File outputFile)Returns a print writer for the given file, or the standard output if the file name is empty.static java.io.PrintWritercreatePrintWriterOut(java.io.File outputFile, boolean append)Returns a print writer for the given file, or the standard output if the file name is empty.static java.lang.StringfileName(java.io.File file)Returns the canonical file name for the given file, or "standard output" if the file name is empty.
-
-
-
方法详细资料
-
createPrintWriterOut
public static java.io.PrintWriter createPrintWriterOut(java.io.File outputFile) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionReturns a print writer for the given file, or the standard output if the file name is empty.- 抛出:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
createPrintWriterOut
public static java.io.PrintWriter createPrintWriterOut(java.io.File outputFile, boolean append) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionReturns a print writer for the given file, or the standard output if the file name is empty.- 抛出:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
createPrintWriterErr
public static java.io.PrintWriter createPrintWriterErr(java.io.File outputFile) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionReturns a print writer for the given file, or the standard output if the file name is empty.- 抛出:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
createPrintWriter
public static java.io.PrintWriter createPrintWriter(java.io.File outputFile, java.io.PrintWriter console) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionReturns a print writer for the given file, or the standard output if the file name is empty.- 抛出:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
createPrintWriter
public static java.io.PrintWriter createPrintWriter(java.io.File outputFile, java.io.PrintWriter console, boolean append) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionReturns a print writer for the given file, or the standard output if the file name is empty.- 抛出:
java.io.FileNotFoundExceptionjava.io.UnsupportedEncodingException
-
closePrintWriter
public static void closePrintWriter(java.io.File file, java.io.PrintWriter printWriter)Closes the given print writer, or flushes it if is the standard output.
-
fileName
public static java.lang.String fileName(java.io.File file)
Returns the canonical file name for the given file, or "standard output" if the file name is empty.
-
-