public class NullWriter
extends java.io.Writer
| Constructor and Description |
|---|
NullWriter()
Instantiates a new null writer.
|
NullWriter(java.lang.Object lock)
Instantiates a new null writer.
|
NullWriter(java.io.Writer parentWriter)
Instantiates a new null writer.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Writer |
append(char c)
Append.
|
java.io.Writer |
append(java.lang.CharSequence csq)
Append.
|
java.io.Writer |
append(java.lang.CharSequence csq,
int start,
int end)
Append.
|
void |
close()
Close.
|
void |
flush()
Flush.
|
java.io.Writer |
getParentWriter()
Gets the parent writer.
|
void |
write(char[] cbuf)
Write.
|
void |
write(char[] cbuf,
int off,
int len)
Write.
|
void |
write(int c)
Write.
|
void |
write(java.lang.String str)
Write.
|
void |
write(java.lang.String str,
int off,
int len)
Write.
|
public NullWriter()
public NullWriter(java.lang.Object lock)
lock - the lockpublic NullWriter(java.io.Writer parentWriter)
parentWriter - the parent writerpublic java.io.Writer getParentWriter()
public void write(int c)
throws java.io.IOException
write in class java.io.Writerc - the cjava.io.IOException - Signals that an I/O exception has occurred.public void write(char[] cbuf)
throws java.io.IOException
write in class java.io.Writercbuf - the cbufjava.io.IOException - Signals that an I/O exception has occurred.public void write(java.lang.String str)
throws java.io.IOException
write in class java.io.Writerstr - the strjava.io.IOException - Signals that an I/O exception has occurred.public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerstr - the stroff - the offlen - the lenjava.io.IOException - Signals that an I/O exception has occurred.public java.io.Writer append(java.lang.CharSequence csq)
throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writercsq - the csqjava.io.IOException - Signals that an I/O exception has occurred.public java.io.Writer append(java.lang.CharSequence csq,
int start,
int end)
throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writercsq - the csqstart - the startend - the endjava.io.IOException - Signals that an I/O exception has occurred.public java.io.Writer append(char c)
throws java.io.IOException
append in interface java.lang.Appendableappend in class java.io.Writerc - the cjava.io.IOException - Signals that an I/O exception has occurred.public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writercbuf - the cbufoff - the offlen - the lenjava.io.IOException - Signals that an I/O exception has occurred.public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOException - Signals that an I/O exception has occurred.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOException - Signals that an I/O exception has occurred.Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa