public final class DDLWriter extends Writer
| Constructor and Description |
|---|
DDLWriter(OutputStream output,
Configuration conf)
Construct new DDLWriter with given output stream and configuration file.
|
DDLWriter(Writer writer,
Configuration conf)
Construct new DDLWriter with given writer and configuration file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkError()
Check if any error occured at previous operations of the writer.
|
void |
close()
Close the writer.
|
void |
flush()
Flush the writer.
|
void |
indent()
Increase indention by 1.
|
void |
print(char[] chars)
Print an array of characters.
|
void |
print(double number)
Print a double-precision floating-point number.
|
void |
print(int number)
Print an integer number.
|
void |
print(long number)
Print a long number.
|
void |
print(Object object)
Print an object.
|
void |
print(String string)
Print a string.
|
void |
print(String pattern,
Object[] arguments)
A convenience method to print a formatted string build by filling placeholders of the
specified pattern with given arguments.
|
void |
println()
Terminate the current line by writing the line separator string.
|
void |
println(char[] chars)
Print an array of characters and terminate the line.
|
void |
println(double number)
Print a double-precision floating-point number and terminate the line.
|
void |
println(int number)
Print an integer number and terminate the line.
|
void |
println(long number)
Print a long number and terminate the line.
|
void |
println(Object object)
Print an object and terminate the line.
|
void |
println(String string)
Print a string and terminate the line.
|
void |
println(String pattern,
Object[] arguments)
A convenience method to print a formatted string build by filling placeholders of the
specified pattern with given arguments.
|
void |
unindent()
Decrease indention by 1.
|
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(String s) |
void |
write(String s,
int off,
int len) |
public DDLWriter(OutputStream output, Configuration conf)
output - Output stream to write output characters to.conf - Configuration.public DDLWriter(Writer writer, Configuration conf)
writer - Writer to write output characters to.conf - Configuration.public void flush()
public void close()
public void checkError()
throws IOException
IOException - IOException caught at any previous operation of the writer.public void indent()
public void unindent()
public void print(char[] chars)
chars - Array of chars to be printed.public void print(double number)
number - Double to be printed.public void print(int number)
number - Integer to be printed.public void print(long number)
number - Long to be printed.public void print(Object object)
object - Object to be printed.public void print(String string)
string - String to be printed.public void print(String pattern, Object[] arguments)
pattern - Pattern with placeholders.arguments - Arguments to replace placeholders in pattern.public void println()
public void println(char[] chars)
chars - Array of chars to be printed.public void println(double number)
number - Double to be printed.public void println(int number)
number - Integer to be printed.public void println(long number)
number - Long to be printed.public void println(Object object)
object - Object to be printed.public void println(String string)
string - String to be printed.public void println(String pattern, Object[] arguments)
pattern - Pattern with placeholders.arguments - Arguments to replace placeholders in pattern.Copyright © 2014. All rights reserved.