public class ReportWriter
extends java.lang.Object
implements java.io.Closeable
SingleFileReport.| Constructor and Description |
|---|
ReportWriter(org.gradle.api.reporting.SingleFileReport pReport,
java.nio.charset.Charset pCharset,
java.nio.file.OpenOption... pOpenOptions)
Create a new
ReportWriter. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decreaseIndentationLevel()
Decrease the indentation level used by
writeIndentation(). |
void |
flush()
Flush any buffered writes to the report file.
|
void |
increaseIndentationLevel()
Increase the indentation level used by
writeIndentation(). |
void |
write(char pChar)
Write a single character to the report file.
|
void |
write(char[] pChars)
Write all characters in an array to the report file.
|
void |
write(java.lang.String pChars)
Write all characters in a string to the report file.
|
void |
writeIndentation()
Write the current indentation to the report file.
|
void |
writeLineBreak()
Write the platform's line separator to the report file.
|
public ReportWriter(org.gradle.api.reporting.SingleFileReport pReport,
java.nio.charset.Charset pCharset,
java.nio.file.OpenOption... pOpenOptions)
throws java.io.IOException
ReportWriter.pReport - The report to write.pCharset - The character set to encode the report with.pOpenOptions - Any options to specify when opening the report's file.java.io.IOException - if opening the report's destination file fails.java.lang.NullPointerException - if any of the parameters is null.public void increaseIndentationLevel()
writeIndentation().public void decreaseIndentationLevel()
writeIndentation().public void writeIndentation()
throws java.io.IOException
java.io.IOException - if writing to the report file fails.public void writeLineBreak()
throws java.io.IOException
java.io.IOException - if writing to the report file fails.public void write(char pChar)
throws java.io.IOException
pChar - The character to write.java.io.IOException - if writing to the report file fails.public void write(char[] pChars)
throws java.io.IOException
pChars - The characters to write.java.io.IOException - if writing to the report file fails.java.lang.NullPointerException - if pChars is null.public void write(java.lang.String pChars)
throws java.io.IOException
pChars - The characters to write.java.io.IOException - if writing to the report file fails.java.lang.NullPointerException - if pChars is null.public void flush()
throws java.io.IOException
java.io.IOException - if flushing to the report file fails.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException