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.Writer
c
- 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.Writer
cbuf
- 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.Writer
str
- 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.Writer
str
- 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.Appendable
append
in class java.io.Writer
csq
- 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.Appendable
append
in class java.io.Writer
csq
- 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.Appendable
append
in class java.io.Writer
c
- 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.Writer
cbuf
- 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.Flushable
flush
in class java.io.Writer
java.io.IOException
- Signals that an I/O exception has occurred.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.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